Skip to content

Commit b1a9d4f

Browse files
authored
Fix test
1 parent 91dcba0 commit b1a9d4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Admin/Form/Element/NamedFormElementTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,10 @@ public function test_add_unique_rule()
131131
$element->setModel($model);
132132

133133
$model->shouldReceive('getTable')->once()->andReturn('test_table');
134+
$model->shouldReceive('getConnectionName')->once()->andReturn('connection');
134135

135136
$element->unique();
136-
$this->assertEquals(['key' => ['unique:test_table,key']], $element->getValidationRules());
137+
$this->assertEquals(['key' => ['unique:connection.test_table,key']], $element->getValidationRules());
137138
}
138139

139140
/**

0 commit comments

Comments
 (0)