Code Duplication    Length = 9-9 lines in 2 locations

tests/api/Domain/Validators/TradeValidatorTest.php 2 locations

@@ 22-30 (lines=9) @@
19
    $this->sut = new TradeValidator($this->app);
20
  }
21
22
  public function testIsInvalidManagerIndicatedForAssetRetrieval() {
23
    $this->draft->draft_id = 1;
24
25
    $this->trade->manager1->draft_id = 2;
26
27
    $result = $this->sut->IsManagerValidForAssetRetrieval($this->draft, $this->trade->manager1);
28
29
    $this->assertFalse($result->success);
30
  }
31
32
  public function testIsValidManagerIndicatedForAssetRetrieval() {
33
    $this->draft->draft_id = 1;
@@ 32-40 (lines=9) @@
29
    $this->assertFalse($result->success);
30
  }
31
32
  public function testIsValidManagerIndicatedForAssetRetrieval() {
33
    $this->draft->draft_id = 1;
34
35
    $this->trade->manager1->draft_id = 1;
36
37
    $result = $this->sut->IsManagerValidForAssetRetrieval($this->draft, $this->trade->manager1);
38
39
    $this->assertTrue($result->success);
40
  }
41
42
  public function testValidationOfTradeRoundValues() {
43
    $this->draft->draft_rounds = 10;