mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 05:44:04 +00:00
assertArraySubset() is deprecated
This commit is contained in:
parent
2ebf4d516f
commit
d527191b89
2 changed files with 6 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ class CacheManagerTest extends TestCase
|
||||||
/** @test */
|
/** @test */
|
||||||
public function default_tag_is_automatically_applied()
|
public function default_tag_is_automatically_applied()
|
||||||
{
|
{
|
||||||
$this->assertArraySubset([config('tenancy.cache.tag_base') . tenant('uuid')], cache()->tags('foo')->getTags()->getNames());
|
$this->assertArrayIsSubset([config('tenancy.cache.tag_base') . tenant('uuid')], cache()->tags('foo')->getTags()->getNames());
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @test */
|
/** @test */
|
||||||
|
|
|
||||||
|
|
@ -102,4 +102,9 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase
|
||||||
// set one of these environment vars on their computer.
|
// set one of these environment vars on their computer.
|
||||||
return env('CI') && env('TRAVIS') && env('CONTINUOUS_INTEGRATION');
|
return env('CI') && env('TRAVIS') && env('CONTINUOUS_INTEGRATION');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function assertArrayIsSubset($subset, $array, string $message = ''): void
|
||||||
|
{
|
||||||
|
parent::assertTrue(array_intersect($subset, $array) == $subset, $message);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue