/** * @covers ::dbLoadFixture */ public function test_dbLoadFixture() { // Given $fixture = ["INSERT INTO `test2` (`id`, `col2`) VALUES (NULL, '600')", "INSERT INTO `test2` (`id`, `col2`) VALUES (NULL, '700')"]; // When $this->driver->dbLoadFixture(DbItf::FIXTURE_FORMAT_SQL, $fixture); $got = $this->driver->dbGetTableData('test2'); // Then $expected = [['id' => '1', 'col2' => '2'], ['id' => '2', 'col2' => '22'], ['id' => '3', 'col2' => '600'], ['id' => '4', 'col2' => '700']]; $this->assertSame($expected, $got); }