Revert "Define test classes as final"

This reverts commit 95516b0343.
This commit is contained in:
Marcus Moore
2024-08-06 13:31:17 -07:00
parent 82e795b642
commit 3e832e5e94
106 changed files with 106 additions and 106 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ use App\Models\Category;
use App\Models\Company;
use Tests\TestCase;
final class AccessoryTest extends TestCase
class AccessoryTest extends TestCase
{
public function testAnAccessoryBelongsToACompany()
{
+1 -1
View File
@@ -4,7 +4,7 @@ namespace Tests\Unit;
use App\Models\AssetMaintenance;
use Tests\TestCase;
final class AssetMaintenanceTest extends TestCase
class AssetMaintenanceTest extends TestCase
{
public function testZerosOutWarrantyIfBlank()
{
+1 -1
View File
@@ -6,7 +6,7 @@ use App\Models\Category;
use App\Models\AssetModel;
use Tests\TestCase;
final class AssetModelTest extends TestCase
class AssetModelTest extends TestCase
{
public function testAnAssetModelContainsAssets()
{
+1 -1
View File
@@ -8,7 +8,7 @@ use Carbon\Carbon;
use Tests\TestCase;
use App\Models\Setting;
final class AssetTest extends TestCase
class AssetTest extends TestCase
{
public function testAutoIncrement()
{
+1 -1
View File
@@ -6,7 +6,7 @@ use App\Models\AssetModel;
use App\Models\Asset;
use Tests\TestCase;
final class CategoryTest extends TestCase
class CategoryTest extends TestCase
{
public function testFailsEmptyValidation()
{
+1 -1
View File
@@ -15,7 +15,7 @@ use App\Models\User;
use Illuminate\Database\Eloquent\Model;
use Tests\TestCase;
final class CompanyScopingTest extends TestCase
class CompanyScopingTest extends TestCase
{
public static function models(): array
{
+1 -1
View File
@@ -7,7 +7,7 @@ use App\Models\Component;
use App\Models\Location;
use Tests\TestCase;
final class ComponentTest extends TestCase
class ComponentTest extends TestCase
{
public function testAComponentBelongsToACompany()
{
+1 -1
View File
@@ -8,7 +8,7 @@ use Tests\TestCase;
* Test strings for db column names gathered from
* http://www.omniglot.com/language/phrases/hovercraft.htm
*/
final class CustomFieldTest extends TestCase
class CustomFieldTest extends TestCase
{
public function testFormat()
{
+1 -1
View File
@@ -7,7 +7,7 @@ use App\Models\License;
use App\Models\AssetModel;
use Tests\TestCase;
final class DepreciationTest extends TestCase
class DepreciationTest extends TestCase
{
public function testADepreciationHasModels()
{
+1 -1
View File
@@ -8,7 +8,7 @@ use Illuminate\Support\Facades\Redirect;
use Illuminate\Support\Facades\Session;
use Tests\TestCase;
final class HelperTest extends TestCase
class HelperTest extends TestCase
{
public function testDefaultChartColorsMethodHandlesHighValues()
{
+1 -1
View File
@@ -7,7 +7,7 @@ use App\Models\Ldap;
use Tests\TestCase;
#[Group('ldap')]
final class LdapTest extends TestCase
class LdapTest extends TestCase
{
use \phpmock\phpunit\PHPMock;
+1 -1
View File
@@ -8,7 +8,7 @@ use App\Models\Asset;
use App\Models\User;
use Tests\TestCase;
final class LogListenerTest extends TestCase
class LogListenerTest extends TestCase
{
public function testLogsEntryOnCheckoutableCheckedOut()
{
+1 -1
View File
@@ -4,7 +4,7 @@ namespace Tests\Unit;
use App\Models\Location;
use Tests\TestCase;
final class LocationTest extends TestCase
class LocationTest extends TestCase
{
public function testPassesIfNotSelfParent()
{
+1 -1
View File
@@ -5,7 +5,7 @@ use App\Models\Company;
use App\Models\User;
use Tests\TestCase;
final class CompanyTest extends TestCase
class CompanyTest extends TestCase
{
public function testACompanyCanHaveUsers()
{
@@ -6,7 +6,7 @@ use App\Models\Company;
use App\Models\User;
use Tests\TestCase;
final class GetIdForCurrentUserTest extends TestCase
class GetIdForCurrentUserTest extends TestCase
{
public function testReturnsProvidedValueWhenFullCompanySupportDisabled()
{
+1 -1
View File
@@ -7,7 +7,7 @@ use App\Models\Labels\FieldOption;
use App\Models\User;
use Tests\TestCase;
final class FieldOptionTest extends TestCase
class FieldOptionTest extends TestCase
{
public function testItDisplaysAssignedToProperly()
{
+1 -1
View File
@@ -10,7 +10,7 @@ use App\Notifications\CheckoutAssetNotification;
use Illuminate\Support\Facades\Notification;
use Tests\TestCase;
final class NotificationTest extends TestCase
class NotificationTest extends TestCase
{
public function testAUserIsEmailedIfTheyCheckoutAnAssetWithEULA()
{
+1 -1
View File
@@ -4,7 +4,7 @@ namespace Tests\Unit;
use App\Models\SnipeModel;
use Tests\TestCase;
final class SnipeModelTest extends TestCase
class SnipeModelTest extends TestCase
{
public function testSetsPurchaseDatesAppropriately()
{
+1 -1
View File
@@ -4,7 +4,7 @@ namespace Tests\Unit;
use Tests\TestCase;
final class SnipeTranslatorTest extends TestCase
class SnipeTranslatorTest extends TestCase
{
// the 'meatiest' of these tests will explicitly choose non-English as the language, because otherwise
// the fallback-logic (which is to fall-back to 'en-US') will be conflated in with the translation logic
+1 -1
View File
@@ -4,7 +4,7 @@ namespace Tests\Unit;
use App\Models\Statuslabel;
use Tests\TestCase;
final class StatuslabelTest extends TestCase
class StatuslabelTest extends TestCase
{
public function testRTDStatuslabelAdd()
{
+1 -1
View File
@@ -4,7 +4,7 @@ namespace Tests\Unit;
use App\Models\User;
use Tests\TestCase;
final class UserTest extends TestCase
class UserTest extends TestCase
{
public function testFirstNameSplit()
{