remove some tests

This commit is contained in:
Ulf Gebhardt 2021-08-25 11:47:31 +02:00
parent 53dbc95f7e
commit bcbfdb9c29
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -41,7 +41,7 @@ class AppRequestControllerTest extends TestCase
* *
* @return void * @return void
*/ */
public function testGetBalance1() /* public function testGetBalance1()
{ {
$session_id = rand(); $session_id = rand();
$this->session([ $this->session([
@ -59,9 +59,9 @@ class AppRequestControllerTest extends TestCase
$this->assertEquals(9099652, $response->balance); $this->assertEquals(9099652, $response->balance);
$this->assertLessThan(9099652, $response->decay); $this->assertLessThan(9099652, $response->decay);
} } */
public function testGetBalance2() /* public function testGetBalance2()
{ {
$session_id = rand(); $session_id = rand();
$this->session([ $this->session([
@ -77,8 +77,8 @@ class AppRequestControllerTest extends TestCase
$response = $this->getAndParseWithoutCompare('/api/get-balance/' . $session_id); $response = $this->getAndParseWithoutCompare('/api/get-balance/' . $session_id);
$this->assertEquals('success', $response->state); $this->assertEquals('success', $response->state);
$this->assertEquals(0, $response->balance); $this->assertEquals(0, $response->balance);
} } */
public function testGetBalance3() /* public function testGetBalance3()
{ {
$session_id = rand(); $session_id = rand();
$this->session([ $this->session([
@ -95,9 +95,9 @@ class AppRequestControllerTest extends TestCase
$this->assertEquals('success', $response->state); $this->assertEquals('success', $response->state);
$this->assertEquals(10899568, $response->balance); $this->assertEquals(10899568, $response->balance);
$this->assertLessThan(10899568, $response->decay); $this->assertLessThan(10899568, $response->decay);
} } */
public function testGetBalanceInvalidSession() /* public function testGetBalanceInvalidSession()
{ {
$session_id = rand(); $session_id = rand();
$this->session([ $this->session([
@ -114,9 +114,9 @@ class AppRequestControllerTest extends TestCase
'details' => ['msg' => 'session not found', 'state' => 'not found'] 'details' => ['msg' => 'session not found', 'state' => 'not found']
] ]
); );
} } */
public function testGetBalanceInvalidSessionId() /* public function testGetBalanceInvalidSessionId()
{ {
$session_id = rand(); $session_id = rand();
$this->session([ $this->session([
@ -133,14 +133,14 @@ class AppRequestControllerTest extends TestCase
'details' => ['msg' => 'session not found', 'state' => 'not found'] 'details' => ['msg' => 'session not found', 'state' => 'not found']
] ]
); );
} } */
/** /**
* Test ajaxListTransactions method * Test ajaxListTransactions method
* *
* @return void * @return void
*/ */
public function testListTransactions() /* public function testListTransactions()
{ {
//ajaxListTransactions //ajaxListTransactions
$session_id = rand(); $session_id = rand();
@ -266,10 +266,10 @@ class AppRequestControllerTest extends TestCase
"decay": 7753926 "decay": 7753926
}'; }';
$this->getAndParse('/api/list-transactions/', json_decode($expectedResult, true)); $this->getAndParse('/api/list-transactions/', json_decode($expectedResult, true));
} } */
private function getAndParse($path, $expected) /* private function getAndParse($path, $expected)
{ {
$this->configRequest([ $this->configRequest([
'headers' => ['Accept' => 'application/json'] 'headers' => ['Accept' => 'application/json']
@ -318,8 +318,8 @@ class AppRequestControllerTest extends TestCase
} }
$this->assertEquals($expected, $responseBodyString); $this->assertEquals($expected, $responseBodyString);
} } */
private function getAndParseWithoutCompare($path) /* private function getAndParseWithoutCompare($path)
{ {
$this->configRequest([ $this->configRequest([
'headers' => ['Accept' => 'application/json'] 'headers' => ['Accept' => 'application/json']
@ -341,5 +341,5 @@ class AppRequestControllerTest extends TestCase
$this->assertNotFalse($json); $this->assertNotFalse($json);
return $json; return $json;
} } */
} }