Advertisement
Guest User

Untitled

a guest
May 23rd, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. public function testValidationDefault()
  2. {
  3. $data = [
  4. // 'username' => 'paijo',
  5. 'password' => 'paijo',
  6. 'role' => 5,
  7. 'name' => 'paijo'
  8. ];
  9. $user = $this->Users->newEntity($data);
  10. $this->assertEmpty($user->getErrors()); // empty = no validation errors
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement