public function test_User_Register_Can_Not_Set_Role() { $post = array('title' => 'Mr', 'firstname' => 'keith', 'lastname' => 'pope', 'email' => '*****@*****.**', 'passwd' => '123456', 'passwdVerify' => '123456', 'role' => 'admin'); $register = $this->_model->registerUser($post); $this->assertEquals(10, $register); $rs = $this->_model->getResource('User'); $inserted = $this->readAttribute($rs, '_rowset'); $this->assertEquals('Customer', $inserted[10]->role); }
public function test_GetMethods_Inflect_As_Expected() { $this->assertType('My_Form_Test_Me', $this->_model->getForm('testMe')); $this->assertType('My_Resource_Test_Me', $this->_model->getResource('testMe')); }