Skip to content
Permalink
Browse files

Add a setAppNamespace() convenience function to replace literal calls

  • Loading branch information...
ravage84 committed Jun 15, 2017
1 parent 48e0393 commit cd02266aef78ddb0d1858f42eeaf1c7e9c4bf196
Showing with 11 additions and 0 deletions.
  1. +11 −0 src/TestSuite/TestCase.php
@@ -676,4 +676,15 @@ public function getMockForModel($alias, array $methods = [], array $options = []
return $mock;
}
/**
* Set the app namespace
*
* @param string $appNamespace The app namespace, defaults to "TestApp".
* @return void
*/
public static function setAppNamespace($appNamespace = 'TestApp')
{
Configure::write('App.namespace', $appNamespace);
}
}

0 comments on commit cd02266

Please sign in to comment.
You can’t perform that action at this time.