deleteQuery()->delete('articles')->execute()->closeCursor(); $rows = $connection->selectQuery()->select('*')->from('articles')->execute(); $this->assertEmpty($rows->fetchAll()); $rows->closeCursor(); $strategy = new TransactionFixtureStrategy(); $strategy->setupTest(['core.Articles']); $rows = $connection->selectQuery()->select('*')->from('articles')->execute(); $this->assertNotEmpty($rows->fetchAll()); $rows->closeCursor(); $strategy->teardownTest(); $rows = $connection->selectQuery()->select('*')->from('articles')->execute(); $this->assertEmpty($rows->fetchAll()); $rows->closeCursor(); } }