From 7dc621a452e2e83404369387c6a2102435cc8f61 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Mon, 9 Jan 2017 23:58:15 +0300 Subject: [PATCH] TopUserTest added. --- .../PointToolsBundle/DTO/TopUserTest.php | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 tests/Skobkin/PointToolsBundle/DTO/TopUserTest.php diff --git a/tests/Skobkin/PointToolsBundle/DTO/TopUserTest.php b/tests/Skobkin/PointToolsBundle/DTO/TopUserTest.php new file mode 100644 index 0000000..80402ff --- /dev/null +++ b/tests/Skobkin/PointToolsBundle/DTO/TopUserTest.php @@ -0,0 +1,31 @@ +assertInternalType('string', $topUser->getLogin()); + $this->assertEquals('testuser', $topUser->getLogin()); + } + + /** + * @depends testCreate + */ + public function testGetSubscribersCount(TopUserDTO $topUser) + { + $this->assertInternalType('int', $topUser->getSubscribersCount()); + $this->assertEquals(3, $topUser->getSubscribersCount()); + } +} \ No newline at end of file