Change has to isSet
This commit is contained in:
1 parent
376aede1ba
commit
3ad1d91c68
3 files changed
+7
-7
No files matched your search
@@ -47,17 +47,17 @@ final class MetadataTest extends TestCase
|
||||
$this->assertSame($valueB, $result);
|
||||
}
|
||||
|
||||
public function testHasReturnsTrueWhenKeyIsSet(): void
|
||||
public function testIsSetReturnsTrueWhenKeyIsSet(): void
|
||||
{
|
||||
$key = 'null';
|
||||
$this->metadata->set($key, null);
|
||||
$result = $this->metadata->has($key);
|
||||
$result = $this->metadata->isSet($key);
|
||||
$this->assertTrue($result);
|
||||
}
|
||||
|
||||
public function testHasReturnsFalseWhenKeyIsNotSet(): void
|
||||
public function testIsSetReturnsFalseWhenKeyIsNotSet(): void
|
||||
{
|
||||
$result = $this->metadata->has('missing');
|
||||
$result = $this->metadata->isSet('missing');
|
||||
$this->assertFalse($result);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user