Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Butochnikov authored Jul 9, 2020
1 parent 91dcba0 commit b1a9d4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Admin/Form/Element/NamedFormElementTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,10 @@ public function test_add_unique_rule()
$element->setModel($model);

$model->shouldReceive('getTable')->once()->andReturn('test_table');
$model->shouldReceive('getConnectionName')->once()->andReturn('connection');

$element->unique();
$this->assertEquals(['key' => ['unique:test_table,key']], $element->getValidationRules());
$this->assertEquals(['key' => ['unique:connection.test_table,key']], $element->getValidationRules());
}

/**
Expand Down

0 comments on commit b1a9d4f

Please sign in to comment.