File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ protected function setUp()
22
22
/** @test */
23
23
public function it_stores_and_retrieves_values ()
24
24
{
25
- $ this ->waitForPromiseToResolve ($ this ->cache ->set ('key ' , 'test ' ));
26
-
27
- $ this ->assertPromiseResolvesWith ($ this ->cache ->get ('key ' ), 'test ' );
25
+ $ this ->waitForPromise ($ this ->cache ->set ('key ' , 'test ' ));
26
+
27
+ $ this ->assertPromiseFulfillsWith ($ this ->cache ->get ('key ' ), 'test ' );
28
28
}
29
29
30
30
/** @test */
@@ -36,7 +36,7 @@ public function it_rejects_promise_when_retrieving_non_existing_key()
36
36
/** @test */
37
37
public function it_removes_value_by_key ()
38
38
{
39
- $ this ->waitForPromiseToResolve ($ this ->cache ->set ('key-to-remove ' , 'test ' ));
39
+ $ this ->waitForPromise ($ this ->cache ->set ('key-to-remove ' , 'test ' ));
40
40
$ this ->cache ->remove ('key-to-remove ' );
41
41
$ this ->assertPromiseRejectsWith ($ this ->cache ->get ('key-to-remove ' ), Exception::class);
42
42
}
You can’t perform that action at this time.
0 commit comments