Skip to content

Commit 9ed6dba

Browse files
authored
Merge pull request #235 from imdhemy/1.x/update-testing-namespace
[1.x] Rename tests namespace
2 parents be86aac + d3e81ed commit 9ed6dba

29 files changed

+61
-61
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
},
3939
"autoload-dev": {
4040
"psr-4": {
41-
"Tests\\": "tests"
41+
"Imdhemy\\Purchases\\Tests\\": "tests"
4242
}
4343
},
4444
"scripts": {

tests/Doubles/AppStoreTestNotificationServiceBuilderDouble.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Tests\Doubles;
5+
namespace Imdhemy\Purchases\Tests\Doubles;
66

77
use GuzzleHttp\Client;
88
use GuzzleHttp\Psr7\Response;

tests/Doubles/JwsVerifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Tests\Doubles;
3+
namespace Imdhemy\Purchases\Tests\Doubles;
44

55
use Imdhemy\AppStore\Jws\JsonWebSignature;
66
use Imdhemy\AppStore\Jws\Jws;

tests/Doubles/Laravel9/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Tests\Doubles\Laravel9;
3+
namespace Imdhemy\Purchases\Tests\Doubles\Laravel9;
44

55
use Illuminate\Foundation\Application as IlluminateApplication;
66

tests/Doubles/LiapTestProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Tests\Doubles;
3+
namespace Imdhemy\Purchases\Tests\Doubles;
44

55
use Illuminate\Foundation\Application;
66
use Illuminate\Support\ServiceProvider;

tests/Doubles/UrlGeneratorDouble.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Tests\Doubles;
3+
namespace Imdhemy\Purchases\Tests\Doubles;
44

55
use Imdhemy\Purchases\Console\UrlGenerator;
66

tests/Events/AppStore/DidChangeRenewalPrefTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
declare(strict_types=1);
44

5-
namespace Tests\Events\AppStore;
5+
namespace Imdhemy\Purchases\Tests\Events\AppStore;
66

77
use Imdhemy\AppStore\ServerNotifications\ServerNotification;
88
use Imdhemy\AppStore\ServerNotifications\V2DecodedPayload;
99
use Imdhemy\Purchases\Events\AppStore\DidChangeRenewalPref;
1010
use Imdhemy\Purchases\ServerNotifications\AppStoreServerNotification;
1111
use Imdhemy\Purchases\ServerNotifications\AppStoreV2ServerNotification;
12-
use Tests\TestCase;
12+
use Imdhemy\Purchases\Tests\TestCase;
1313

1414
class DidChangeRenewalPrefTest extends TestCase
1515
{

tests/Events/AppStore/DidChangeRenewalStatusTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
declare(strict_types=1);
44

5-
namespace Tests\Events\AppStore;
5+
namespace Imdhemy\Purchases\Tests\Events\AppStore;
66

77
use Imdhemy\AppStore\ServerNotifications\ServerNotification;
88
use Imdhemy\AppStore\ServerNotifications\V2DecodedPayload;
99
use Imdhemy\Purchases\Events\AppStore\DidChangeRenewalStatus;
1010
use Imdhemy\Purchases\ServerNotifications\AppStoreServerNotification;
1111
use Imdhemy\Purchases\ServerNotifications\AppStoreV2ServerNotification;
12-
use Tests\TestCase;
12+
use Imdhemy\Purchases\Tests\TestCase;
1313

1414
class DidChangeRenewalStatusTest extends TestCase
1515
{

tests/Events/AppStore/EventFactoryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22

3-
namespace Tests\Events\AppStore;
3+
namespace Imdhemy\Purchases\Tests\Events\AppStore;
44

55
use Imdhemy\AppStore\ServerNotifications\ServerNotification;
66
use Imdhemy\Purchases\Contracts\PurchaseEventContract;
77
use Imdhemy\Purchases\Events\AppStore\EventFactory;
88
use Imdhemy\Purchases\Events\AppStore\Revoke;
99
use Imdhemy\Purchases\ServerNotifications\AppStoreServerNotification;
10-
use Tests\TestCase;
10+
use Imdhemy\Purchases\Tests\TestCase;
1111

1212
class EventFactoryTest extends TestCase
1313
{

tests/Events/GooglePlay/EventFactoryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22

3-
namespace Tests\Events\GooglePlay;
3+
namespace Imdhemy\Purchases\Tests\Events\GooglePlay;
44

55
use Imdhemy\GooglePlay\DeveloperNotifications\DeveloperNotification;
66
use Imdhemy\Purchases\Events\GooglePlay\EventFactory;
77
use Imdhemy\Purchases\Events\GooglePlay\SubscriptionPurchased;
88
use Imdhemy\Purchases\ServerNotifications\GoogleServerNotification;
9-
use Tests\TestCase;
9+
use Imdhemy\Purchases\Tests\TestCase;
1010

1111
class EventFactoryTest extends TestCase
1212
{

0 commit comments

Comments
 (0)