コード例 #1
0
 public function it_can_transform_page_to_array()
 {
     $attributes = $this->getAttributes($this->block);
     $attributes['type']->shouldBe($this->block->getType());
     $attributes['parameters']->shouldBe($this->block->getParameters());
     $attributes['location']->shouldBe($this->block->getLocation());
     $attributes['sort_order']->shouldBe($this->block->getSortOrder());
     $attributes['status']->shouldBe($this->block->getStatus()->toString());
     $attributes['meta']->shouldBe(['created' => $this->block->metaDataGetCreatedTimestamp()->format('c'), 'updated' => $this->block->metaDataGetUpdatedTimestamp()->format('c')]);
 }