Skip to content

Commit

Permalink
Improve specifity of test methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Oct 11, 2024
1 parent 2b6195b commit 85fab14
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,19 @@ public function testLanguageAction()
$en = $result['details']['en'];

// Did we load help files correctly?
$this->assertTrue(count($en['helpFiles']) >= 4);
$this->assertGreaterThan(3, count($en['helpFiles']));
$this->assertTrue(in_array('search.phtml', $en['helpFiles']));

// Did we put the object in the right place?
$this->assertEquals(TextDomain::class, get_class($en['object']));

// Did the @parent_ini macro get stripped correctly?
$this->assertFalse(isset($result['details']['en-gb']['object']['@parent_ini']));
$this->assertArrayNotHasKey('@parent_ini', $result['details']['en-gb']['object']);

// Did the native.ini file get properly ignored?
$this->assertFalse(isset($result['details']['native']));
$this->assertArrayNotHasKey('native', $result['details']);

// Did the aliases.ini file get properly ignored?
$this->assertFalse(isset($result['details']['aliases']));
$this->assertArrayNotHasKey('aliases', $result['details']);
}
}

0 comments on commit 85fab14

Please sign in to comment.