Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeyroik committed Apr 27, 2020
1 parent 741fcab commit a465014
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions tests/jsonrpc/transitions/TransitionLoadTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,25 +102,13 @@ public function testValid()
Transition::FIELD__NAME => 'test',
Transition::FIELD__TITLE => 'test',
Transition::FIELD__STATE_FROM => 'from',
Transition::FIELD__STATE_FROM => 'to'
Transition::FIELD__STATE_TO => 'to'
],
[
Transition::FIELD__NAME => 'already-exists',
Transition::FIELD__TITLE => 'test',
Transition::FIELD__STATE_FROM => 'from',
Transition::FIELD__STATE_FROM => 'to'
],
[
Transition::FIELD__NAME => 'test2',
Transition::FIELD__TITLE => 'test',
Transition::FIELD__STATE_FROM => 'unknown-state-from',
Transition::FIELD__STATE_FROM => 'to'
],
[
Transition::FIELD__NAME => 'test2',
Transition::FIELD__TITLE => 'test',
Transition::FIELD__STATE_FROM => 'from',
Transition::FIELD__STATE_FROM => 'unknown-state-to'
Transition::FIELD__STATE_TO => 'to'
]
]
]);
Expand All @@ -140,10 +128,7 @@ public function testValid()
State::FIELD__TITLE => 'test'
]));

$operation(
$serverRequest,
$serverResponse
);
$operation($serverRequest, $serverResponse);

/**
* @var $jsonRpcResponse IResponse
Expand All @@ -156,7 +141,7 @@ public function testValid()
IResponse::RESPONSE__VERSION => IResponse::VERSION_CURRENT,
IResponse::RESPONSE__RESULT => [
'created_count' => 1,
'got_count' => 4
'got_count' => 2
]
],
json_decode($jsonRpcResponse->getPsrResponse()->getBody(), true)
Expand Down

0 comments on commit a465014

Please sign in to comment.