$this->assertSame('body', $data);
}
- public function testFetchElementTypeNotFound()
+ public function testFetchElementTypeValueNotFound()
{
$object = ['source' => ['content' => 'body', 'mediaType' => 'text/html']];
$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()
{
$object = ['source' => ['content' => 'body', 'mediaType' => 'text/bbcode']];