diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-12-18 02:46:35 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-12-18 02:46:35 +0300 |
commit | feddb6d0ef77d28ed28c473946923af4e9128926 (patch) | |
tree | b9a5647f0ea7dc657e97bb504796ca9d9d377fe5 /tests | |
parent | 258584ff790312d2eab8fd30bc88c779c99a5ed1 (diff) |
Fixed test.....
Diffstat (limited to 'tests')
-rw-r--r-- | tests/PHPUnit/Integration/CacheIdTest.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/PHPUnit/Integration/CacheIdTest.php b/tests/PHPUnit/Integration/CacheIdTest.php index ebdfd9c035..01d39d7e49 100644 --- a/tests/PHPUnit/Integration/CacheIdTest.php +++ b/tests/PHPUnit/Integration/CacheIdTest.php @@ -39,7 +39,11 @@ class CacheIdTest extends IntegrationTestCase { $result = CacheId::pluginAware('myrandomkey'); - // if this test fails most likely there is a new plugin loaded and you simple have to update the cache id. - $this->assertEquals('myrandomkey-8f88a1dea9163e86178e69a1293ec084-en', $result); + $parts = explode('-', $result); + + $this->assertCount(3, $parts); + $this->assertEquals('myrandomkey', $parts[0]); + $this->assertEquals(32, strlen($parts[1]), $parts[1] . ' is not a MD5 hash'); + $this->assertEquals('en', $parts[2]); } } |