Skip to content

Commit

Permalink
Amended tests to reflect the change in functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
joelit committed May 8, 2020
1 parent aff2647 commit 3ade80f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/VocabularyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,9 @@ public function testGetTopConcepts() {
*/
public function testGetChangeList() {
$vocab = $this->model->getVocabulary('changes');
$months = $vocab->getChangeList('dc11:created','en', 'en', 0);
$expected = array ('hurr durr' => array ('uri' => 'http://www.skosmos.skos/changes/d3', 'prefLabel' => 'Hurr Durr', 'date' => DateTime::__set_state(array('date' => '2010-02-12 10:26:39.000000', 'timezone_type' => 3, 'timezone' => 'UTC')), 'datestring' => 'Feb 12, 2010'), 'second date' => array ('uri' => 'http://www.skosmos.skos/changes/d2', 'prefLabel' => 'Second date', 'date' => DateTime::__set_state(array('date' => '2010-02-12 15:26:39.000000', 'timezone_type' => 3, 'timezone' => 'UTC')), 'datestring' => 'Feb 12, 2010'));
$this->assertEquals(array('December 2011', 'February 2010', 'January 2000'), array_keys($months));
$this->assertEquals($expected, $months['February 2010']);
$changeList = $vocab->getChangeList('dc11:created','en', 0);
$expected = array ('uri' => 'http://www.skosmos.skos/changes/d3', 'prefLabel' => 'Hurr Durr', 'date' => '2010-02-12T10:26:39');
$this->assertEquals($expected, $changeList[1]);
}

/**
Expand Down

0 comments on commit 3ade80f

Please sign in to comment.