/** * Test that PageProoferCode::getIsActive() is returning * proper boolean based on it's parameters */ public function testGetIsActiveCode() { $code1 = PageProoferCode::get_by_code('12345345'); $this->assertFalse($code1->getIsActiveCode()); $code2 = PageProoferCode::get_by_code('123456789'); $this->assertTrue($code2->getIsActiveCode()); }