/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. * * @return void */ protected function setUp() { $this->user = Model::fromArray(array('lastname' => 'Test', 'firstname' => 'Test', 'email' => '*****@*****.**', 'login' => 'test-user-model', 'user_acl_role_id' => 1)); $this->user->setPassword('test-user-model-password'); $this->user->save(); $this->object = new Acl($this->user); }
/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. * * @return void */ protected function setUp() { $this->object = new Collection(); $model = Model::fromArray(array('name' => 'name-collection-test', 'identifier' => 'identifier-collection-test', 'description' => 'description-collection-test', 'content' => 'content-collection-test')); $model->save(); }
/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. * * @return void */ protected function setUp() { $this->module = Model::fromArray(array('name' => 'ModuleTest')); $this->module->save(); $this->object = new Collection(); }