From 002f6ab3cf4a361e7622b221e68504eedda2c2d4 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Wed, 25 Aug 2021 12:00:19 +0200 Subject: [PATCH] remove empty test file (.old) --- ...t.php => AppRequestControllerTest.php.old} | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) rename community_server/tests/TestCase/Controller/{AppRequestControllerTest.php => AppRequestControllerTest.php.old} (95%) diff --git a/community_server/tests/TestCase/Controller/AppRequestControllerTest.php b/community_server/tests/TestCase/Controller/AppRequestControllerTest.php.old similarity index 95% rename from community_server/tests/TestCase/Controller/AppRequestControllerTest.php rename to community_server/tests/TestCase/Controller/AppRequestControllerTest.php.old index 6960428d3..321ed5ac1 100644 --- a/community_server/tests/TestCase/Controller/AppRequestControllerTest.php +++ b/community_server/tests/TestCase/Controller/AppRequestControllerTest.php.old @@ -32,16 +32,16 @@ class AppRequestControllerTest extends TestCase - /*public function setUp() { + public function setUp() { parent::setUp(); } -*/ + /** * Test ajaxGetBalance method * * @return void */ - /* public function testGetBalance1() + public function testGetBalance1() { $session_id = rand(); $this->session([ @@ -59,9 +59,9 @@ class AppRequestControllerTest extends TestCase $this->assertEquals(9099652, $response->balance); $this->assertLessThan(9099652, $response->decay); - } */ + } - /* public function testGetBalance2() + public function testGetBalance2() { $session_id = rand(); $this->session([ @@ -77,8 +77,8 @@ class AppRequestControllerTest extends TestCase $response = $this->getAndParseWithoutCompare('/api/get-balance/' . $session_id); $this->assertEquals('success', $response->state); $this->assertEquals(0, $response->balance); - } */ - /* public function testGetBalance3() + } + public function testGetBalance3() { $session_id = rand(); $this->session([ @@ -95,9 +95,9 @@ class AppRequestControllerTest extends TestCase $this->assertEquals('success', $response->state); $this->assertEquals(10899568, $response->balance); $this->assertLessThan(10899568, $response->decay); - } */ + } - /* public function testGetBalanceInvalidSession() + public function testGetBalanceInvalidSession() { $session_id = rand(); $this->session([ @@ -114,9 +114,9 @@ class AppRequestControllerTest extends TestCase 'details' => ['msg' => 'session not found', 'state' => 'not found'] ] ); - } */ + } - /* public function testGetBalanceInvalidSessionId() + public function testGetBalanceInvalidSessionId() { $session_id = rand(); $this->session([ @@ -133,14 +133,14 @@ class AppRequestControllerTest extends TestCase 'details' => ['msg' => 'session not found', 'state' => 'not found'] ] ); - } */ + } /** * Test ajaxListTransactions method * * @return void */ - /* public function testListTransactions() + public function testListTransactions() { //ajaxListTransactions $session_id = rand(); @@ -266,10 +266,10 @@ class AppRequestControllerTest extends TestCase "decay": 7753926 }'; $this->getAndParse('/api/list-transactions/', json_decode($expectedResult, true)); - } */ + } - /* private function getAndParse($path, $expected) + private function getAndParse($path, $expected) { $this->configRequest([ 'headers' => ['Accept' => 'application/json'] @@ -318,8 +318,8 @@ class AppRequestControllerTest extends TestCase } $this->assertEquals($expected, $responseBodyString); - } */ - /* private function getAndParseWithoutCompare($path) + } + private function getAndParseWithoutCompare($path) { $this->configRequest([ 'headers' => ['Accept' => 'application/json'] @@ -341,5 +341,5 @@ class AppRequestControllerTest extends TestCase $this->assertNotFalse($json); return $json; - } */ + } }