Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions app/cdash/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ endif()
# Tests from this point to the next cdash_install() are expected to not need database or other
# system resources.

add_unit_test(/Unit/app/ControllerNameTest)
add_unit_test(/Unit/ControllerNameTest)

add_unit_test(/Unit/app/FillableAttributesTest)
add_unit_test(/Unit/FillableAttributesTest)

add_unit_test(/Unit/app/Validators/PasswordTest)
add_unit_test(/Unit/Validators/PasswordTest)

add_unit_test(/Unit/app/Middleware/InternalTest)
add_unit_test(/Unit/Middleware/InternalTest)

# TODO: Is this test useful now?
add_legacy_unit_test(/PHPUnitTest)
Expand All @@ -98,7 +98,7 @@ add_legacy_unit_test(/CDash/ServiceContainer)

add_legacy_unit_test(/CDash/LinkifyCompilerOutput)

add_unit_test(/Unit/app/Console/Command/ValidateXmlCommandTest)
add_unit_test(/Unit/Console/Command/ValidateXmlCommandTest)

add_php_test(seconds_from_interval)

Expand Down
10 changes: 5 additions & 5 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -27769,28 +27769,28 @@ parameters:
rawMessage: 'You should use assertSame() instead of assertEquals(), because both values are scalars of the same type'
identifier: phpunit.assertEquals
count: 2
path: tests/Unit/app/Console/Command/ValidateXmlCommandTest.php
path: tests/Unit/Console/Command/ValidateXmlCommandTest.php

-
rawMessage: 'Parameter #1 $objectOrClass of class ReflectionClass constructor expects class-string<T of object>|T of object, array<string>|string given.'
identifier: argument.type
count: 1
path: tests/Unit/app/ControllerNameTest.php
path: tests/Unit/ControllerNameTest.php

-
rawMessage: 'Parameter #2 ...$arrays of function array_merge expects array, mixed given.'
identifier: argument.type
count: 1
path: tests/Unit/app/ControllerNameTest.php
path: tests/Unit/ControllerNameTest.php

-
rawMessage: 'Parameter #3 $subject of function str_replace expects array<string>|string, mixed given.'
identifier: argument.type
count: 1
path: tests/Unit/app/ControllerNameTest.php
path: tests/Unit/ControllerNameTest.php

-
rawMessage: 'You should use assertSame() instead of assertEquals(), because both values are scalars of the same type'
identifier: phpunit.assertEquals
count: 1
path: tests/Unit/app/Middleware/InternalTest.php
path: tests/Unit/Middleware/InternalTest.php
2 changes: 1 addition & 1 deletion tests/Feature/Mail/AuthTokenExpiredTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Tests\Feature\Jobs;
namespace Tests\Feature\Mail;

use App\Mail\AuthTokenExpired;
use App\Models\AuthToken;
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/Mail/AuthTokenExpiringTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Tests\Feature\Jobs;
namespace Tests\Feature\Mail;

use App\Mail\AuthTokenExpiring;
use App\Models\AuthToken;
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/Submission/Tests/TestXMLTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Tests\Feature\Submission\Instrumentation;
namespace Tests\Feature\Submission\Tests;

use App\Models\Project;
use Tests\TestCase;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Tests\Feature;
namespace Tests\Unit\Console\Command;

use Illuminate\Console\Command;
use Illuminate\Support\Facades\Artisan;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Tests\Unit\app;
namespace Tests\Unit;

use Tests\TestCase;
use Tests\Traits\IteratesControllers;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Tests\Unit\app;
namespace Tests\Unit;

use App\Models\User;
use Illuminate\Database\Eloquent\MassAssignmentException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Tests\Unit\app\Middleware;
namespace Tests\Unit\Middleware;

use App\Http\Middleware\Internal;
use Illuminate\Http\Request;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
PURPOSE. See the above copyright notices for more information.
=========================================================================*/

namespace App\Validators;
namespace Tests\Unit\Validators;

use App\Validators\Password as PasswordValidator;
use Config;
Expand Down