@@ 988-996 (lines=9) @@ | ||
985 | * @return void |
|
986 | * @see FixtureTask::bake |
|
987 | */ |
|
988 | public function bakeFixture($className, $useTable = null) |
|
989 | { |
|
990 | if (!empty($this->params['no-fixture'])) { |
|
991 | return; |
|
992 | } |
|
993 | $this->Fixture->connection = $this->connection; |
|
994 | $this->Fixture->plugin = $this->plugin; |
|
995 | $this->Fixture->bake($className, $useTable); |
|
996 | } |
|
997 | ||
998 | /** |
|
999 | * Assembles and writes a unit test file |
|
@@ 1004-1012 (lines=9) @@ | ||
1001 | * @param string $className Model class name |
|
1002 | * @return string |
|
1003 | */ |
|
1004 | public function bakeTest($className) |
|
1005 | { |
|
1006 | if (!empty($this->params['no-test'])) { |
|
1007 | return; |
|
1008 | } |
|
1009 | $this->Test->plugin = $this->plugin; |
|
1010 | $this->Test->connection = $this->connection; |
|
1011 | return $this->Test->bake('Table', $className); |
|
1012 | } |
|
1013 | } |
|
1014 |