Skip to content

Commit 3d8d1d7

Browse files
committed
refactor: align test namespaces with vendor prefix
Updates test file namespaces from Syndication\Tests to Automattic\Syndication\Tests to match the plugin's namespace conventions and @Package declarations already present in docblocks. This ensures consistency across the codebase where production code uses the Automattic vendor prefix whilst test code previously omitted it. The change affects integration tests, unit tests, and the test bootstrap file.
1 parent 6d35469 commit 3d8d1d7

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

tests/Integration/EncryptionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace Syndication\Tests;
2+
namespace Automattic\Syndication\Tests;
33

44
use Yoast\WPTestUtils\WPIntegration\TestCase as WPIntegrationTestCase;
55

tests/Integration/EncryptorMCryptTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace Syndication\Tests;
2+
namespace Automattic\Syndication\Tests;
33

44
use Yoast\WPTestUtils\WPIntegration\TestCase as WPIntegrationTestCase;
55

tests/Integration/EncryptorOpenSSLTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace Syndication\Tests;
2+
namespace Automattic\Syndication\Tests;
33

44
use Yoast\WPTestUtils\WPIntegration\TestCase as WPIntegrationTestCase;
55

tests/Integration/EncryptorTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace Syndication\Tests;
2+
namespace Automattic\Syndication\Tests;
33

44
use Yoast\WPTestUtils\WPIntegration\TestCase as WPIntegrationTestCase;
55

tests/Integration/LoggerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @package Automattic\Syndication\Tests
66
*/
77

8-
namespace Syndication\Tests;
8+
namespace Automattic\Syndication\Tests;
99

1010
use Yoast\WPTestUtils\WPIntegration\TestCase as WPIntegrationTestCase;
1111
use Syndication_Logger;

tests/Integration/PullContentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @package Automattic\Syndication\Tests
66
*/
77

8-
namespace Syndication\Tests;
8+
namespace Automattic\Syndication\Tests;
99

1010
use Yoast\WPTestUtils\WPIntegration\TestCase as WPIntegrationTestCase;
1111

tests/Unit/ClientFactoryTest.php

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

1111
declare( strict_types=1 );
1212

13-
namespace Syndication\Tests\Unit;
13+
namespace Automattic\Syndication\Tests\Unit;
1414

1515
/**
1616
* Test case for client factory class name generation.

tests/Unit/EventCounterTest.php

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

88
declare( strict_types=1 );
99

10-
namespace Syndication\Tests\Unit;
10+
namespace Automattic\Syndication\Tests\Unit;
1111

1212
use Brain\Monkey\Functions;
1313
use ReflectionMethod;

tests/Unit/TestCase.php

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

88
declare( strict_types=1 );
99

10-
namespace Syndication\Tests\Unit;
10+
namespace Automattic\Syndication\Tests\Unit;
1111

1212
use Yoast\WPTestUtils\BrainMonkey\TestCase as BrainMonkeyTestCase;
1313

tests/bootstrap.php

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

88
declare( strict_types=1 );
99

10-
namespace Syndication\Tests;
10+
namespace Automattic\Syndication\Tests;
1111

1212
use Yoast\WPTestUtils\WPIntegration;
1313

0 commit comments

Comments
 (0)