From bc616a142b5abd26be26cb826ec281b48b5339a2 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 7 Jun 2020 08:29:19 +0000 Subject: [PATCH] There is always one last test ... --- tests/src/Util/JSonLDTest.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/src/Util/JSonLDTest.php b/tests/src/Util/JSonLDTest.php index 1d9ebdc598..8fff9dee3d 100644 --- a/tests/src/Util/JSonLDTest.php +++ b/tests/src/Util/JSonLDTest.php @@ -114,7 +114,7 @@ class JsonLDTest extends TestCase $this->assertSame('body', $data); } - public function testFetchElementTypeNotFound() + public function testFetchElementTypeValueNotFound() { $object = ['source' => ['content' => 'body', 'mediaType' => 'text/html']]; @@ -122,6 +122,14 @@ class JsonLDTest extends TestCase $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']];