/** * Test that the down method will truncate all current fixture table data * and empty the fixtures array. * * @test * @return void */ public function itShouldTruncateAllFixtures() { $this->fixture->setConfig(array('location' => __DIR__ . '/fixtures/orm')); $this->fixture->up(); $this->fixture->down(); list($userCount, $roleCount, $gameCount) = $this->getRecordCounts(); $this->assertEmpty($this->fixture->getFixtures()); $this->assertEquals(0, $userCount); $this->assertEquals(0, $roleCount); $this->assertEquals(0, $gameCount); }