Browse Source

Travis.ci ends up with differently ordered results than my computer does.

mark_story 12 years ago
parent
commit
33e14318a4
1 changed files with 5 additions and 3 deletions
  1. 5 3
      tests/TestCase/Console/Command/BakeShellTest.php

+ 5 - 3
tests/TestCase/Console/Command/BakeShellTest.php

@@ -106,9 +106,9 @@ class BakeShellTest extends TestCase {
 		$this->Shell->expects($this->at(0))
 			->method('out')
 			->with($this->stringContains('The following commands'));
-		$this->Shell->expects($this->at(4))
-			->method('out')
-			->with('behavior');
+
+		$this->Shell->expects($this->exactly(17))
+			->method('out');
 
 		$this->Shell->loadTasks();
 		$this->Shell->main();
@@ -149,6 +149,8 @@ class BakeShellTest extends TestCase {
 			'View',
 			'Zerg',
 		];
+		sort($this->Shell->tasks);
+		sort($expected);
 		$this->assertEquals($expected, $this->Shell->tasks);
 	}