There is always one last test ...
This commit is contained in:
parent
1f36c655e1
commit
bc616a142b
1 changed files with 9 additions and 1 deletions
|
@ -114,7 +114,7 @@ class JsonLDTest extends TestCase
|
||||||
$this->assertSame('body', $data);
|
$this->assertSame('body', $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testFetchElementTypeNotFound()
|
public function testFetchElementTypeValueNotFound()
|
||||||
{
|
{
|
||||||
$object = ['source' => ['content' => 'body', 'mediaType' => 'text/html']];
|
$object = ['source' => ['content' => 'body', 'mediaType' => 'text/html']];
|
||||||
|
|
||||||
|
@ -122,6 +122,14 @@ class JsonLDTest extends TestCase
|
||||||
$this->assertNull($data);
|
$this->assertNull($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testFetchElementTypeNotFound()
|
||||||
|
{
|
||||||
|
$object = ['source' => ['content' => 'body', 'mediaType' => 'text/html']];
|
||||||
|
|
||||||
|
$data = JsonLD::fetchElement($object, 'source', 'content', 'mediaType2', 'text/html');
|
||||||
|
$this->assertNull($data);
|
||||||
|
}
|
||||||
|
|
||||||
public function testFetchElementTypeWithoutType()
|
public function testFetchElementTypeWithoutType()
|
||||||
{
|
{
|
||||||
$object = ['source' => ['content' => 'body', 'mediaType' => 'text/bbcode']];
|
$object = ['source' => ['content' => 'body', 'mediaType' => 'text/bbcode']];
|
||||||
|
|
Loading…
Reference in a new issue