Differential D25085 Diff 373 src/applications/ponder/storage/__tests__/PonderQuestionStatusTestCase.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/ponder/storage/__tests__/PonderQuestionStatusTestCase.php
- This file was added.
<?php | |||||
final class PonderQuestionStatusTestCase extends PhutilTestCase { | |||||
public function testClosedStatuses() { | |||||
$statuses = PonderQuestionStatus::getQuestionStatusClosedMap(); | |||||
foreach ($statuses as $status) { | |||||
$question = new PonderQuestion(); | |||||
$question->setStatus($status); | |||||
$this->assertEqual(true, $question->isStatusClosed()); | |||||
} | |||||
} | |||||
public function testOpenedStatuses() { | |||||
$statuses = PonderQuestionStatus::getQuestionStatusOpenMap(); | |||||
foreach ($statuses as $status) { | |||||
$question = new PonderQuestion(); | |||||
$question->setStatus($status); | |||||
$this->assertEqual(false, $question->isStatusClosed()); | |||||
} | |||||
} | |||||
} |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0