add: ignora kind debug, test per nuova feature rm: test vuoti su funzionalità basate su api terze
This commit is contained in:
parent
024c3de06d
commit
39de7f47ca
9 changed files with 21 additions and 135 deletions
|
@ -88,19 +88,26 @@ protected function setUp(): void
|
|||
|
||||
public function testLabelExists()
|
||||
{
|
||||
$labels = [['name' => 'RequestBy: User1'], ['name' => 'Bug']];
|
||||
$this->assertTrue($this->issue_validation_controller->search_requested_by($labels));
|
||||
$labels = [['name' => 'RequestBy: User1'], ['name' => 'Piru']];
|
||||
$this->assertTrue($this->issue_validation_controller->search_requested_by_and_kind_bug($labels));
|
||||
}
|
||||
|
||||
public function testLabelDoesNotExist()
|
||||
{
|
||||
$labels = [['name' => 'Bug'], ['name' => 'Feature']];
|
||||
$this->assertFalse($this->issue_validation_controller->search_requested_by($labels));
|
||||
$this->assertFalse($this->issue_validation_controller->search_requested_by_and_kind_bug($labels));
|
||||
}
|
||||
|
||||
public function testEmptyLabels()
|
||||
{
|
||||
$labels = [];
|
||||
$this->assertFalse($this->issue_validation_controller->search_requested_by($labels));
|
||||
$this->assertFalse($this->issue_validation_controller->search_requested_by_and_kind_bug($labels));
|
||||
}
|
||||
|
||||
public function testKindBugExists()
|
||||
{
|
||||
$labels = [['name' => 'RequestBy: User1'], ['name' => 'Bug']];
|
||||
$this->assertFalse($this->issue_validation_controller->search_requested_by_and_kind_bug($labels));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue