public function bakeFixture($className, $useTable = null) { if (!empty($this->params['no-fixture'])) { return; } $this->Fixture->connection = $this->connection; $this->Fixture->plugin = $this->plugin; $this->Fixture->bake($className, $useTable); }
/** * Ensure that the fixture baking can be disabled * * @return void */ public function testBakeFixtureDisabled() { $this->Task->params['no-fixture'] = true; $this->Task->plugin = 'TestBake'; $this->Task->Fixture->expects($this->never())->method('bake'); $this->Task->bakeFixture('BakeArticle', 'bake_articles'); }