\GnPublishMetadataCommandTest
Synopsis
class GnPublishMetadataCommandTest
extends SapphireTest
{
- // members
- public static string $fixture_file = 'geocatalogue/tests/GnGetUUIDOfRecordByIDCommandTest.yml';
- public static string $xsl_path = '';
- protected $controller = NULL;
- // methods
- public void setUp()
- public void tearDown()
- public void testGnPublishMetadataCommand()
- public void testGnPublishMetadataCommandWithUnexpectedId()
- public void testGnPublishMetadataCommandWithNullId()
Hierarchy
Extends
- SapphireTest
Members
protected
- $controller
public
-
$fixture_file
Also uses SimpleNzctFixture in setUp() - $xsl_path
Methods
public
- setUp() — Initiate the controller and page classes and configure GeoNetwork service to use the mockup-controller for testing.
- tearDown() — Remove test controller from global controller-stack.
- testGnPublishMetadataCommand() — Test the GnPublishMetadataCommand
- testGnPublishMetadataCommandWithNullId() — Test the GnPublishMetadataCommand with 0 id which leads in a fake-response without an <id> tag resulting in an exception
- testGnPublishMetadataCommandWithUnexpectedId() — Test the GnPublishMetadataCommand with an unexpectes id