/** * @test */ public function it_can_render_field_with_html_value() { $this->field->setValue('<b>Body</b>'); $str = $this->field->render(); $expectedStr = '<textarea name="body"><b>Body</b></textarea>'; $this->assertEquals($str, $expectedStr); }
/** * @test */ public function is_can_render_value() { $str = $this->field->renderValue(); $expectedStr = 'Test Title'; $this->assertEquals($str, $expectedStr); }