getAll(); $this->assertTrue(in_array("Europe/Rome", ArrayHelper::getColumn($alltz, "timezone"))); $this->assertTrue(in_array("0100", ArrayHelper::getColumn($alltz, "offset"))); } // Test with minPasswordRequirements equal to an empty array (= password without requirements) public function testTimeZoneValidator() { $v = Yii::createObject(TimeZoneValidator::class, ["Europe/Rome"]); $this->assertTrue($v->validate()); } }