Beispiel #1
0
 /**
  * @testdox Allows setting the status of a job posting
  * @covers Jobs\Entity\Job::changeStatus
  * @dataProvider provideStatus
  */
 public function testChangeStatus($input, $expected)
 {
     $status = new Status($input);
     $msg = "this is the message";
     $this->target->changeStatus($status, $msg);
     $this->assertEquals($this->target->getStatus(), $expected);
 }
Beispiel #2
0
 /**
  * @testdox Allows setting the status of a job posting
  * @covers Jobs\Entity\Job::getStatus
  * @covers Jobs\Entity\Job::setStatus
  * @dataProvider provideSetGetStatusTestData
  */
 public function testSetGetStatus($status, $expectedStatus)
 {
     $this->target->setStatus($status);
     $this->assertEquals($expectedStatus, $this->target->getStatus());
 }