/** * @testdox Allows setting a the cover letter * @covers Applications\Entity\Application::isDraft * @covers Applications\Entity\Application::setIsDraft */ public function testSetGetIsDraft() { $input = true; $this->target->setIsDraft($input); $this->assertEquals($input, $this->target->isDraft()); $input = false; $this->target->setIsDraft($input); $this->assertEquals($input, $this->target->isDraft()); }
/** * @testdox Allows setting a the cover letter * @covers Applications\Entity\Application::isDraft * @covers Applications\Entity\Application::setIsDraft * @dataProvider provideSetGetDraft */ public function testSetGetIsDraft($input, $expected) { $this->target->setIsDraft($input); $this->assertEquals($this->target->isDraft(), $expected); }