Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed May 12, 2024
1 parent 98a86fa commit cb1dd18
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions tests/UI/Presenter.storeRequest().phpt
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,6 @@ test('ok', function () {
$testedKeyExistence = $storedKey = $storedValue = $testExpiration = $testExpirationVariables = null;

$sessionSectionMock = @Mockery::mock(Nette\Http\SessionSection::class);
$sessionSectionMock->shouldReceive('__isset')
->andReturnUsing(function ($name) use (&$testedKeyExistence) {
$testedKeyExistence = $name;
return false;
});

$sessionSectionMock->shouldReceive('__set')
->andReturnUsing(function ($name, $value) use (&$storedKey, &$storedValue) {
$storedKey = $name;
$storedValue = $value;
});

$sessionSectionMock->shouldReceive('setExpiration')
->andReturnUsing(function ($expiration, $variables = null) use (&$testExpiration, &$testExpirationVariables, $sessionSectionMock) {
$testExpiration = $expiration;
Expand Down Expand Up @@ -96,18 +84,6 @@ test('no user', function () {
$testedKeyExistence = $storedKey = $storedValue = $testExpiration = $testExpirationVariables = null;

$sessionSectionMock = Mockery::mock(Nette\Http\SessionSection::class);
$sessionSectionMock->shouldReceive('__isset')
->andReturnUsing(function ($name) use (&$testedKeyExistence) {
$testedKeyExistence = $name;
return false;
});

$sessionSectionMock->shouldReceive('__set')
->andReturnUsing(function ($name, $value) use (&$storedKey, &$storedValue) {
$storedKey = $name;
$storedValue = $value;
});

$sessionSectionMock->shouldReceive('setExpiration')
->andReturnUsing(function ($expiration, $variables = null) use (&$testExpiration, &$testExpirationVariables, $sessionSectionMock) {
$testExpiration = $expiration;
Expand Down

0 comments on commit cb1dd18

Please sign in to comment.