Skip to content

Commit

Permalink
Support older versions
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald committed Jul 18, 2024
1 parent ac68d50 commit 9de7b08
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions tests/Feature/DatabaseDriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1547,26 +1547,26 @@ public function testItCanLoadAllFeaturesForScope()

$records = DB::table('features')->orderBy('scope')->orderBy('name')->get(['name', 'scope', 'value'])->all();
$this->assertCount(4, $records);
$this->assertEquals(literal(
scope: 'taylor',
value: 'true',
name: 'bar',
), $records[0]);
$this->assertEquals(literal(
scope: 'taylor',
value: 'false',
name: 'foo',
), $records[1]);
$this->assertEquals(literal(
scope: 'tim',
value: 'false',
name: 'bar',
), $records[2]);
$this->assertEquals(literal(
scope: 'tim',
value: 'true',
name: 'foo',
), $records[3]);
$this->assertEquals((object) [
'scope' => 'taylor',
'value' => 'true',
'name' => 'bar',
], $records[0]);
$this->assertEquals((object) [
'scope' => 'taylor',
'value' => 'false',
'name' => 'foo',
], $records[1]);
$this->assertEquals((object) [
'scope' => 'tim',
'value' => 'false',
'name' => 'bar',
], $records[2]);
$this->assertEquals((object) [
'scope' => 'tim',
'value' => 'true',
'name' => 'foo',
], $records[3]);
}
}

Expand Down

0 comments on commit 9de7b08

Please sign in to comment.