-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#766 Removed unnecessary mock test class and moved remaining mock tes…
…t class back to the support folder.
- Loading branch information
Showing
5 changed files
with
7 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,7 @@ protected function getTestConfiguration() | |
], | ||
'format' => [ | ||
'default' => [ | ||
'class' => MockDefaultOaiServer::class, | ||
'class' => Oai_Model_Prefix_Oai_OaiDcServer::class, | ||
'viewHelpers' => 'optionValue, fileUrl, frontdoorUrl, transferUrl, dcmiType, dcType, openAireType', | ||
'xsltFile' => 'oaiFile.xslt', | ||
], | ||
|
@@ -88,7 +88,7 @@ public function testGetDefaults() | |
'resumptionTokenPath' => '/vagrant/tests/workspace/tmp/resumption', | ||
'emailContact' => '[email protected]', | ||
'xsltFile' => 'oaiFile.xslt', | ||
'class' => MockDefaultOaiServer::class, | ||
'class' => Oai_Model_Prefix_Oai_OaiDcServer::class, | ||
'viewHelpers' => 'optionValue, fileUrl, frontdoorUrl, transferUrl, dcmiType, dcType, openAireType', | ||
]; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,9 +53,8 @@ protected function getTestConfiguration() | |
], | ||
'format' => [ | ||
'default' => [ | ||
'class' => MockDefaultOaiServer::class, | ||
'class' => Oai_Model_Prefix_Oai_OaiDcServer::class, | ||
'viewHelpers' => 'optionValue, fileUrl, frontdoorUrl, transferUrl, dcmiType, dcType, openAireType', | ||
'xsltFile' => 'oaiFile.xslt', | ||
'hasFilesVisibleInOai' => 1, | ||
], | ||
'copy_xml' => [ | ||
|
@@ -102,7 +101,7 @@ public function testCreate() | |
$serverFactory = new Oai_Model_ServerFactory(); | ||
$serverFactory->setOaiConfig($this->getOaiConfig()); | ||
$server = $serverFactory->create(); | ||
$this->assertEquals(MockDefaultOaiServer::class, get_class($server)); | ||
$this->assertEquals(Oai_Model_Prefix_Oai_OaiDcServer::class, get_class($server)); | ||
} | ||
|
||
public function testCreateWithMetadataPrefix() | ||
|
@@ -118,7 +117,7 @@ public function testCreateWithUnknownMetadataPrefix() | |
$serverFactory = new Oai_Model_ServerFactory(); | ||
$serverFactory->setOaiConfig($this->getOaiConfig()); | ||
$server = $serverFactory->create('unknownPrefix'); | ||
$this->assertEquals(MockDefaultOaiServer::class, get_class($server)); | ||
$this->assertEquals(Oai_Model_Prefix_Oai_OaiDcServer::class, get_class($server)); | ||
} | ||
|
||
public function testCreateWithNoFormatConfiguration() | ||
|
@@ -184,7 +183,7 @@ public function testDefaultServerOptionsWithDefaultConfiguration() | |
'maxListRecords' => 10, | ||
'resumptionTokenPath' => '/vagrant/tests/workspace/tmp/resumption', | ||
'emailContact' => '[email protected]', | ||
'xsltFile' => 'oaiFile.xslt', | ||
'xsltFile' => 'oai_dc.xslt', | ||
'documentStatesAllowed' => ['published', 'deleted'], | ||
'viewHelpers' => ['optionValue', 'fileUrl', 'frontdoorUrl', 'transferUrl', 'dcmiType', 'dcType', 'openAireType', 'listMetadataFormats'], | ||
'notEmbargoedOn' => false, | ||
|
@@ -194,7 +193,7 @@ public function testDefaultServerOptionsWithDefaultConfiguration() | |
'checkEmbargo' => false, | ||
]; | ||
|
||
$this->assertEquals(MockDefaultOaiServer::class, get_class($server)); | ||
$this->assertEquals(Oai_Model_Prefix_Oai_OaiDcServer::class, get_class($server)); | ||
$this->assertEquals($expectedOptions, $server->getOptions(array_keys($expectedOptions))); | ||
} | ||
|
||
|
File renamed without changes.