Page MenuHomePhorge

PonderQuestionStatusTestCase.php
No OneTemporary

PonderQuestionStatusTestCase.php

<?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());
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Thu, Dec 19, 17:00 (20 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1014855
Default Alt Text
PonderQuestionStatusTestCase.php (667 B)

Event Timeline