/** * Seed the table registry with this test case's Table class * * @return void */ public function setUp() { $aliases = ['Articles', 'Authors', 'Comments']; $options = ['className' => 'ShadowTranslate\\Test\\TestCase\\Model\\Behavior\\Table']; foreach ($aliases as $alias) { TableRegistry::get($alias, $options); } parent::setUp(); }
/** * Seed the table registry with this test case's Table class * * @return void */ public function setUp() { $aliases = ['Articles', 'Authors', 'Comments']; $options = ['className' => __NAMESPACE__ . '\\Table']; foreach ($aliases as $alias) { TableRegistry::get($alias, $options); } parent::setUp(); }