Skip to content

Commit

Permalink
Fix test class namespaces (#933)
Browse files Browse the repository at this point in the history
* Fix test class namespaces

* fix stub

* fix namespace

* fix namespace
  • Loading branch information
spawnia authored Sep 24, 2024
1 parent e51bd86 commit 8550265
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 19 deletions.
2 changes: 1 addition & 1 deletion test/Sentry/Console/AboutCommandIntegrationTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Sentry\Console;
namespace Sentry\Laravel\Tests\Console;

use Illuminate\Foundation\Console\AboutCommand;
use Illuminate\Support\Facades\Artisan;
Expand Down
2 changes: 1 addition & 1 deletion test/Sentry/EventHandler/AuthEventsTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Sentry\EventHandler;
namespace Sentry\Laravel\Tests\EventHandler;

use Illuminate\Auth\Events\Authenticated;
use Illuminate\Contracts\Auth\Authenticatable;
Expand Down
2 changes: 1 addition & 1 deletion test/Sentry/Features/ConsoleIntegrationTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Sentry\Laravel\Tests\EventHandler;
namespace Sentry\Laravel\Tests\Features;

use Illuminate\Console\Events\CommandStarting;
use Sentry\Laravel\Tests\TestCase;
Expand Down
2 changes: 1 addition & 1 deletion test/Sentry/Features/ConsoleSchedulingIntegrationTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Sentry\Features;
namespace Sentry\Laravel\Tests\Features;

use DateTimeZone;
use Illuminate\Console\Scheduling\Schedule;
Expand Down
2 changes: 1 addition & 1 deletion test/Sentry/Features/DatabaseIntegrationTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Sentry\Features;
namespace Sentry\Laravel\Tests\Features;

use Illuminate\Database\Events\QueryExecuted;
use Illuminate\Support\Facades\DB;
Expand Down
8 changes: 4 additions & 4 deletions test/Sentry/Features/FolioPackageIntegrationTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Sentry\Features;
namespace Sentry\Laravel\Tests\Features;

use Laravel\Folio\Folio;
use Sentry\EventType;
Expand Down Expand Up @@ -165,9 +165,9 @@ public function testFolioTransactionNameForRouteWithRouteModelBoundSegmentParame

$this->get("/folio/user/{$user->id}")->assertOk();

// This looks a little odd, but that is because we want to make the route model binding work in our tests
// normally this would look like `/folio/user/{User}` instead, see: https://laravel.com/docs/10.x/folio#route-model-binding.
$this->assertEquals('/folio/user/{.Sentry.Features.FolioPackageIntegrationUserModel}', Integration::getTransaction());
// This looks a little odd, but that is because we want to make the route model binding work in our tests.
// Normally this would look like `/folio/user/{User}` instead, see: https://laravel.com/docs/10.x/folio#route-model-binding.
$this->assertEquals('/folio/user/{.Sentry.Laravel.Tests.Features.FolioPackageIntegrationUserModel}', Integration::getTransaction());
}
}

Expand Down
2 changes: 1 addition & 1 deletion test/Sentry/Features/LogIntegrationTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Sentry\Features;
namespace Sentry\Laravel\Tests\Features;

use Illuminate\Config\Repository;
use Illuminate\Support\Facades\Log;
Expand Down
2 changes: 1 addition & 1 deletion test/Sentry/Features/NotificationsIntegrationTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Sentry\Features;
namespace Sentry\Laravel\Tests\Features;

use Illuminate\Support\Facades\Mail;
use Illuminate\Support\Facades\Notification;
Expand Down
2 changes: 1 addition & 1 deletion test/Sentry/Features/QueueIntegrationTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Sentry\Laravel\Tests\EventHandler;
namespace Sentry\Laravel\Tests\Features;

use Exception;
use Illuminate\Contracts\Queue\ShouldQueue;
Expand Down
2 changes: 1 addition & 1 deletion test/Sentry/Features/RouteIntegrationTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Sentry\Features;
namespace Sentry\Laravel\Tests\Features;

use Illuminate\Routing\Router;
use Sentry\Laravel\Tests\TestCase;
Expand Down
2 changes: 1 addition & 1 deletion test/Sentry/Http/LaravelRequestFetcherTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Sentry\Http;
namespace Sentry\Laravel\Tests\Http;

use Nyholm\Psr7\ServerRequest;
use Sentry\Laravel\Http\LaravelRequestFetcher;
Expand Down
2 changes: 1 addition & 1 deletion test/Sentry/Integration/LaravelContextIntegrationTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Sentry\Integration;
namespace Sentry\Laravel\Tests\Integration;

use Exception;
use Illuminate\Support\Facades\Context;
Expand Down
2 changes: 1 addition & 1 deletion test/Sentry/Integration/ModelViolationReportersTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Sentry\Integration;
namespace Sentry\Laravel\Tests\Integration;

use Illuminate\Database\Eloquent\MissingAttributeException;
use Illuminate\Database\Eloquent\Model;
Expand Down
4 changes: 1 addition & 3 deletions test/Sentry/ServiceProviderWithEnvironmentFromConfigTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php

namespace Sentry;

use Sentry\Laravel\Tests\TestCase;
namespace Sentry\Laravel\Tests;

class ServiceProviderWithEnvironmentFromConfigTest extends TestCase
{
Expand Down

0 comments on commit 8550265

Please sign in to comment.