/** * Initialize condition options * * @param array $options * @return NotBlank */ public function initialize(array $options) { $this->blankCondition->initialize($options); return $this; }
public function validate($value) { return !parent::validate($value); }
function test_simple_components() { $comp = new Blank(3); $this->assertIdentical($comp->getType(), BLANK); $comp = new Block("hoho", 3); $this->assertIdentical($comp->getType(), BLOCK); $comp = new Heading("hoho", 3); $this->assertIdentical($comp->getType(), HEADING); $comp = new Footer("hoho", 3); $this->assertIdentical($comp->getType(), FOOTER); }
/** * Constructor * * @param array $options */ public function __construct($options = array()) { parent::__construct($options); $this->addValidator('Csrf'); }
/** * @return \yii\db\ActiveQuery */ public function getBlanks() { return $this->hasMany(Blank::className(), ['povod_id' => 'id']); }
/** * Check tests are working */ public function testBlah() { $this->assertEquals('Ready to start building tests', $this->blank->blah()); }
/** * {@inheritdoc} */ protected function isConditionAllowed($context) { return !parent::isConditionAllowed($context); }