Skip to content

Commit b9adbd8

Browse files
committed
Removed settings type check as this properties are now type hinted
Signed-off-by: Jan Henckens <jan@henckens.be>
1 parent 61c7b2c commit b9adbd8

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

tests/unit/ScoutTest.php

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -108,26 +108,7 @@ public function it_throws_an_exception_when_index_names_are_not_unique()
108108

109109
$scout->init();
110110
}
111-
112-
/** @test * */
113-
public function it_has_rules_for_the_settings()
114-
{
115-
$scout = new Scout('scout');
116-
$settings = $scout->getSettings();
117-
118-
$settings->sync = 'not-a-boolean';
119-
$settings->queue = 'not-a-boolean';
120-
$settings->connect_timeout = 'not-a-number';
121-
122-
$settings->validate();
123-
124-
$this->assertEquals('Application Id cannot be blank.', $settings->errors['application_id'][0]);
125-
$this->assertEquals('Admin Api Key cannot be blank.', $settings->errors['admin_api_key'][0]);
126-
$this->assertEquals('Sync must be either "1" or "0".', $settings->errors['sync'][0]);
127-
$this->assertEquals('Queue must be either "1" or "0".', $settings->errors['queue'][0]);
128-
$this->assertEquals('Connect Timeout must be an integer.', $settings->errors['connect_timeout'][0]);
129-
}
130-
111+
131112
/** @test * */
132113
public function it_registers_utility()
133114
{

0 commit comments

Comments
 (0)