Skip to content

Commit c685d3c

Browse files
committed
Update testing dependency
1 parent ef6918b commit c685d3c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/CacheTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)