Skip to content
Snippets Groups Projects
Unverified Commit 3735dd0d authored by Lucas Hedding's avatar Lucas Hedding
Browse files

fix unit test

parent e0486196
No related branches found
No related tags found
No related merge requests found
......@@ -156,7 +156,7 @@ EOD;
$this->assertEquals(count($expected), iterator_count($iterator));
$iterator = $csv->initializeIterator();
foreach ($expected as $record) {
$this->assertArrayEquals($record, $iterator->current());
$this->assertSame($record, $iterator->current());
$iterator->next();
}
......@@ -314,7 +314,7 @@ EOD;
*/
public function testGetIds(array $configuration, array $expected): void {
$csv = new CSV($configuration + ['path' => $this->standardCharsPath], $this->pluginId, $this->pluginDefinition, $this->migration);
$this->assertArrayEquals($expected, $csv->getIds());
$this->assertSame($expected, $csv->getIds());
}
/**
......@@ -356,7 +356,7 @@ EOD;
*/
public function testFields(array $configuration, array $expected): void {
$csv = new CSV($configuration + ['path' => $this->standardCharsPath], $this->pluginId, $this->pluginDefinition, $this->migration);
$this->assertArrayEquals($expected, $csv->fields());
$this->assertSame($expected, $csv->fields());
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment