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()
2222 /** @test */
2323 public function it_stores_and_retrieves_values ()
2424 {
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 ' );
2828 }
2929
3030 /** @test */
@@ -36,7 +36,7 @@ public function it_rejects_promise_when_retrieving_non_existing_key()
3636 /** @test */
3737 public function it_removes_value_by_key ()
3838 {
39- $ this ->waitForPromiseToResolve ($ this ->cache ->set ('key-to-remove ' , 'test ' ));
39+ $ this ->waitForPromise ($ this ->cache ->set ('key-to-remove ' , 'test ' ));
4040 $ this ->cache ->remove ('key-to-remove ' );
4141 $ this ->assertPromiseRejectsWith ($ this ->cache ->get ('key-to-remove ' ), Exception::class);
4242 }
You can’t perform that action at this time.
0 commit comments