Merge pull request #15232 from marcusmoore/shift-126036
Updated PHPUnit to v10
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace Tests\Unit;
|
||||
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
use App\Models\Accessory;
|
||||
use App\Models\Asset;
|
||||
use App\Models\AssetMaintenance;
|
||||
@@ -16,7 +17,7 @@ use Tests\TestCase;
|
||||
|
||||
class CompanyScopingTest extends TestCase
|
||||
{
|
||||
public function models(): array
|
||||
public static function models(): array
|
||||
{
|
||||
return [
|
||||
'Accessories' => [Accessory::class],
|
||||
@@ -27,7 +28,7 @@ class CompanyScopingTest extends TestCase
|
||||
];
|
||||
}
|
||||
|
||||
/** @dataProvider models */
|
||||
#[DataProvider('models')]
|
||||
public function testCompanyScoping($model)
|
||||
{
|
||||
[$companyA, $companyB] = Company::factory()->count(2)->create();
|
||||
|
||||
@@ -2,12 +2,11 @@
|
||||
|
||||
namespace Tests\Unit;
|
||||
|
||||
use PHPUnit\Framework\Attributes\Group;
|
||||
use App\Models\Ldap;
|
||||
use Tests\TestCase;
|
||||
|
||||
/**
|
||||
* @group ldap
|
||||
*/
|
||||
#[Group('ldap')]
|
||||
class LdapTest extends TestCase
|
||||
{
|
||||
use \phpmock\phpunit\PHPMock;
|
||||
|
||||
Reference in New Issue
Block a user