Example #1
0
 public function testTemplate()
 {
     $post = new Post();
     $template = new Template();
     $expected = $template;
     $post->setTemplate($template);
     $actual = $post->getTemplate();
     $this->assertSame($expected, $actual);
 }
Example #2
0
 public function testSchema()
 {
     $post = new Post();
     $schema = new Schema();
     $expected = $schema;
     $post->setSchema($schema);
     $actual = $post->getSchema();
     $this->assertSame($expected, $actual);
 }