Skip to content

Commit

Permalink
is not unique test
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed May 3, 2020
1 parent 22990d4 commit 51d0f22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/system/Validation/RulesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ public function testIsNotUniqueIgnoresParamsPlaceholders()
'email' => 'is_not_unique[user.email,id,{id}]',
]);

$this->assertFalse($this->validation->run($data));
$this->assertTrue($this->validation->run($data));
}

//--------------------------------------------------------------------
Expand All @@ -785,7 +785,7 @@ public function testIsNotUniqueByManualRun()
'country' => 'Elbonia',
]);

$this->assertFalse((new Rules())->is_unique('[email protected]', 'user.email,id,{id}', []));
$this->assertTrue((new Rules())->is_not_unique('[email protected]', 'user.email,id,{id}', []));
}

//--------------------------------------------------------------------
Expand Down

0 comments on commit 51d0f22

Please sign in to comment.