Skip to content
This repository was archived by the owner on Dec 14, 2024. It is now read-only.

Commit 90c9cd6

Browse files
Use Acme namespaces for tests
1 parent 5d6e66f commit 90c9cd6

21 files changed

+38
-43
lines changed

behat.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ default:
44
paths:
55
features: tests/Features
66
contexts:
7-
- 'AlexisLefebvre\Bundle\AsyncTweetsBundle\Tests\Features\Context\FeatureContext'
8-
- 'AlexisLefebvre\Bundle\AsyncTweetsBundle\Tests\Features\Context\DoctrineContext':
7+
- 'Acme\Features\Context\FeatureContext'
8+
- 'Acme\Features\Context\DoctrineContext':
99
doctrine: '@doctrine'
1010
- 'Behat\MinkExtension\Context\MinkContext'
1111
- behatch:context:browser
@@ -15,7 +15,7 @@ default:
1515
kernel:
1616
env: test
1717
debug: true
18-
class: AlexisLefebvre\Bundle\AsyncTweetsBundle\Tests\App\AppKernel
18+
class: Acme\App\AppKernel
1919
bootstrap: tests/App/bootstrap.php
2020
Behat\MinkExtension:
2121
sessions:

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
},
4646
"autoload-dev": {
4747
"psr-4": {
48-
"AlexisLefebvre\\Bundle\\AsyncTweetsBundle\\Tests\\": "tests/"
48+
"Acme\\": "tests/"
4949
}
5050
}
5151
}

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
>
1212
<php>
1313
<server name="KERNEL_DIR" value="tests/App" />
14-
<server name="KERNEL_CLASS" value="AlexisLefebvre\Bundle\AsyncTweetsBundle\Tests\App\AppKernel" />
14+
<server name="KERNEL_CLASS" value="Acme\App\AppKernel" />
1515
</php>
1616

1717
<testsuites>

tests/App/AppKernel.php

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

3-
namespace AlexisLefebvre\Bundle\AsyncTweetsBundle\Tests\App;
3+
namespace Acme\App;
44

55
/** @see http://www.whitewashing.de/2012/02/25/symfony2_controller_testing.html */
66
use Symfony\Component\Config\Loader\LoaderInterface;

tests/App/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ parameters:
4848
twitter_token_secret: null
4949

5050
services:
51-
AlexisLefebvre\Bundle\AsyncTweetsBundle\Tests\DataFixtures\:
51+
Acme\DataFixtures\:
5252
resource: '../DataFixtures'
5353
tags: ['doctrine.fixture.orm']

tests/Command/StatusesBase.php

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

3-
namespace AlexisLefebvre\Bundle\AsyncTweetsBundle\Tests\Command;
3+
namespace Acme\Command;
44

55
use Liip\FunctionalTestBundle\Test\WebTestCase;
66
use Symfony\Bundle\FrameworkBundle\Console\Application;

tests/Command/StatusesHomeTimelineTest.php

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

3-
namespace AlexisLefebvre\Bundle\AsyncTweetsBundle\Tests\Command;
3+
namespace Acme\Command;
44

5-
use AlexisLefebvre\Bundle\AsyncTweetsBundle\Command\StatusesHomeTimelineTestCommand;
65
use Symfony\Component\Console\Tester\CommandTester;
76

87
class StatusesHomeTimelineTest extends StatusesBase
@@ -264,7 +263,7 @@ public function testStatusesHomeTimelineWithTweetAndRetweet()
264263
public function testStatusesHomeTimelineWithSinceIdParameter()
265264
{
266265
$this->loadFixtures([
267-
'AlexisLefebvre\Bundle\AsyncTweetsBundle\Tests\DataFixtures\ORM\LoadTweetData',
266+
'Acme\DataFixtures\ORM\LoadTweetData',
268267
]);
269268

270269
// Disable decoration for tests on Windows

src/Command/StatusesHomeTimelineTestCommand.php renamed to tests/Command/StatusesHomeTimelineTestCommand.php

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

3-
namespace AlexisLefebvre\Bundle\AsyncTweetsBundle\Command;
3+
namespace Acme\Command;
44

5+
use AlexisLefebvre\Bundle\AsyncTweetsBundle\Command\StatusesHomeTimelineCommand;
56
use Symfony\Component\Console\Input\InputArgument;
67
use Symfony\Component\Console\Input\InputInterface;
78

tests/Command/StatusesReadTest.php

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

3-
namespace AlexisLefebvre\Bundle\AsyncTweetsBundle\Tests\Command;
3+
namespace Acme\Command;
44

55
use AlexisLefebvre\Bundle\AsyncTweetsBundle\Command\StatusesReadCommand;
66
use Symfony\Component\Console\Tester\CommandTester;
@@ -41,7 +41,7 @@ public function testStatusesReadEmpty()
4141
public function testStatusesReadWithTweets()
4242
{
4343
$this->loadFixtures([
44-
'AlexisLefebvre\Bundle\AsyncTweetsBundle\Tests\DataFixtures\ORM\LoadTweetData',
44+
'Acme\DataFixtures\ORM\LoadTweetData',
4545
]);
4646

4747
// Disable decoration for tests on Windows

tests/Controller/DefaultControllerTest.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?php
22

3-
namespace AlexisLefebvre\Bundle\AsyncTweetsBundle\Tests\Controller;
3+
namespace Acme\Controller;
44

55
use Liip\FunctionalTestBundle\Test\WebTestCase;
6+
use Symfony\Component\BrowserKit\Client;
67

78
class DefaultControllerTest extends WebTestCase
89
{
@@ -35,7 +36,7 @@ public function testNoTweets()
3536
public function testTweets($path = null)
3637
{
3738
$this->loadFixtures([
38-
'AlexisLefebvre\Bundle\AsyncTweetsBundle\Tests\DataFixtures\ORM\LoadTweetData',
39+
'Acme\DataFixtures\ORM\LoadTweetData',
3940
]);
4041

4142
if (is_null($path)) {
@@ -142,7 +143,7 @@ public function testSinceTweetId()
142143
public function testTweetsPages()
143144
{
144145
$this->loadFixtures([
145-
'AlexisLefebvre\Bundle\AsyncTweetsBundle\Tests\DataFixtures\ORM\LoadTweetPagesData',
146+
'Acme\DataFixtures\ORM\LoadTweetPagesData',
146147
]);
147148

148149
$path = '/sinceId/15';
@@ -292,7 +293,7 @@ public function testTweetsPages()
292293
public function testCookie()
293294
{
294295
$this->loadFixtures([
295-
'AlexisLefebvre\Bundle\AsyncTweetsBundle\Tests\DataFixtures\ORM\LoadTweetData',
296+
'Acme\DataFixtures\ORM\LoadTweetData',
296297
]);
297298

298299
$tweetId = 49664;
@@ -372,7 +373,7 @@ public function testCookie()
372373
public function testDeleteTweets()
373374
{
374375
$this->loadFixtures([
375-
'AlexisLefebvre\Bundle\AsyncTweetsBundle\Tests\DataFixtures\ORM\LoadTweetPagesData',
376+
'Acme\DataFixtures\ORM\LoadTweetPagesData',
376377
]);
377378

378379
$path = '/sinceId/15';
@@ -591,7 +592,7 @@ public function testDeleteTweets()
591592
public function testHideRetweetedTweets()
592593
{
593594
$this->loadFixtures([
594-
'AlexisLefebvre\Bundle\AsyncTweetsBundle\Tests\DataFixtures\ORM\LoadTweetAndRetweetData',
595+
'Acme\DataFixtures\ORM\LoadTweetAndRetweetData',
595596
]);
596597

597598
////////// Homepage //////////

0 commit comments

Comments
 (0)