File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,8 @@ public function it_returns_page_entity_with_filled_properties()
7272 $ this ->assertCount (9 , $ pageResult ->getRawProperties ());
7373 $ this ->assertCount (9 , $ pageResult ->getProperties ());
7474 $ this ->assertCount (9 , $ pageResult ->getPropertyKeys ());
75+ $ this ->assertSame ('database_id ' , $ pageResult ->getParentType ());
76+ $ this ->assertSame ('f2939732-f694-4ce2-b613-f28db6ded673 ' , $ pageResult ->getParentId ());
7577
7678 // check date and datetime properties
7779 $ this ->assertTrue ($ pageResult ->getProperty ('DateWithTime ' )->hasTime ());
Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ public function it_checks_if_specific_page_property_is_a_valid_text_property()
9999 $ this ->assertSame ('text ' , $ text ->getType ());
100100 $ this ->assertSame ('|Zt@ ' , $ text ->getId ());
101101 $ this ->assertSame ('this is a nice Text :-) ' , $ text ->getPlainText ());
102+ $ this ->assertSame ('this is a nice Text :-) ' , $ text ->asText ());
102103 $ this ->assertInstanceOf (RichText::class, $ text ->getRichText ());
103104 $ this ->assertInstanceOf (RichText::class, $ text ->getContent ());
104105 $ this ->assertSame ('this is a nice Text :-) ' , $ text ->getRichText ()->getPlainText ());
@@ -149,6 +150,7 @@ public function it_checks_if_specific_page_property_is_a_valid_title_property()
149150 $ this ->assertSame ('title ' , $ title ->getType ());
150151 $ this ->assertSame ('title ' , $ title ->getId ());
151152 $ this ->assertSame ('Notion Is Awesome ' , $ title ->getPlainText ());
153+ $ this ->assertSame ('Notion Is Awesome ' , $ title ->asText ());
152154 $ this ->assertInstanceOf (RichText::class, $ title ->getContent ());
153155 $ this ->assertSame ('Notion Is Awesome ' , $ title ->getContent ()->getPlainText ());
154156 }
You can’t perform that action at this time.
0 commit comments