Example #1
0
 public function it_can_transform_page_to_array()
 {
     $attributes = $this->getAttributes($this->page);
     $attributes['title']->shouldBe($this->page->getTitle());
     $attributes['slug']->shouldBe($this->page->getSlug());
     $attributes['short_title']->shouldBe($this->page->getShortTitle());
     $attributes['parent_uuid']->shouldBe($this->page->getParentUuid()->toString());
     $attributes['sort_order']->shouldBe($this->page->getSortOrder());
     $attributes['status']->shouldBe($this->page->getStatus()->toString());
     $attributes['meta']->shouldBe(['created' => $this->page->metaDataGetCreatedTimestamp()->format('c'), 'updated' => $this->page->metaDataGetUpdatedTimestamp()->format('c')]);
 }