diff --git a/old/tests/Skobkin/PointToolsBundle/Controller/PostControllerTest.php b/old/tests/Skobkin/PointToolsBundle/Controller/PostControllerTest.php index 033ef34..061a94b 100644 --- a/old/tests/Skobkin/PointToolsBundle/Controller/PostControllerTest.php +++ b/old/tests/Skobkin/PointToolsBundle/Controller/PostControllerTest.php @@ -2,7 +2,7 @@ namespace Tests\Skobkin\PointToolsBundle\Controller; -use src\PointToolsBundle\DataFixtures\ORM\LoadPostData; +use App\DataFixtures\LoadPostData; use Symfony\Bundle\FrameworkBundle\{Client, Test\WebTestCase}; use Symfony\Component\DomCrawler\Crawler; diff --git a/old/tests/Skobkin/PointToolsBundle/DTO/TopUserTest.php b/old/tests/Skobkin/PointToolsBundle/DTO/TopUserTest.php index fb9425f..60f886e 100644 --- a/old/tests/Skobkin/PointToolsBundle/DTO/TopUserTest.php +++ b/old/tests/Skobkin/PointToolsBundle/DTO/TopUserTest.php @@ -1,8 +1,9 @@ assertInternalType('string', $topUser->getLogin()); - $this->assertEquals('testuser', $topUser->getLogin()); + $this->assertInternalType('string', $topUser->login); + $this->assertEquals('testuser', $topUser->login); } /** @@ -25,7 +26,7 @@ class TopUserTest extends \PHPUnit_Framework_TestCase */ public function testGetSubscribersCount(TopUserDTO $topUser) { - $this->assertInternalType('int', $topUser->getSubscribersCount()); - $this->assertEquals(3, $topUser->getSubscribersCount()); + $this->assertInternalType('int', $topUser->subscribersCount); + $this->assertEquals(3, $topUser->subscribersCount); } -} \ No newline at end of file +} diff --git a/old/tests/Skobkin/PointToolsBundle/Repository/UserRepositoryTest.php b/old/tests/Skobkin/PointToolsBundle/Repository/UserRepositoryTest.php index 6de7383..bb3327d 100644 --- a/old/tests/Skobkin/PointToolsBundle/Repository/UserRepositoryTest.php +++ b/old/tests/Skobkin/PointToolsBundle/Repository/UserRepositoryTest.php @@ -2,8 +2,8 @@ namespace Tests\Skobkin\PointToolsBundle\Repository; +use App\DTO\TopUserDTO; use Doctrine\ORM\EntityManager; -use src\PointToolsBundle\DTO\TopUserDTO; use src\PointToolsBundle\Entity\User; use src\PointToolsBundle\Repository\UserRepository; use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; diff --git a/old/tests/Skobkin/PointToolsBundle/Service/Factory/UserFactoryTest.php b/old/tests/Skobkin/PointToolsBundle/Service/Factory/UserFactoryTest.php index de1450e..c31312c 100644 --- a/old/tests/Skobkin/PointToolsBundle/Service/Factory/UserFactoryTest.php +++ b/old/tests/Skobkin/PointToolsBundle/Service/Factory/UserFactoryTest.php @@ -2,13 +2,13 @@ namespace Tests\Skobkin\PointToolsBundle\Service\Factory; +use App\DTO\Api\User as UserDTO; +use App\Exception\Factory\InvalidUserDataException; +use App\Factory\UserFactory; use PHPUnit\Framework\TestCase; use Psr\Log\LoggerInterface; -use src\PointToolsBundle\DTO\Api\User as UserDTO; use src\PointToolsBundle\Entity\User; -use src\PointToolsBundle\Exception\Factory\InvalidUserDataException; use src\PointToolsBundle\Repository\UserRepository; -use src\PointToolsBundle\Service\Factory\UserFactory; class UserFactoryTest extends TestCase {