Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function testValidationDefault()
- {
- $data = [
- // 'username' => 'paijo',
- 'password' => 'paijo',
- 'role' => 5,
- 'name' => 'paijo'
- ];
- $user = $this->Users->newEntity($data);
- $this->assertEmpty($user->getErrors()); // empty = no validation errors
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement