Guest User

Untitled

a guest
Feb 18th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. Configure::write('currentDataSource', 'testdb');
  2. $dataSource = Configure::read('currentDataSource');
  3. $this->setDataSource($dataSource);
  4.  
  5. class ProjectsControllerTest extends CakeTestCase{
  6. function testEmailNewProject()
  7. {
  8. $id = 2008098;
  9. $result = $this->testAction('/projects/emailNewProject', array('fixturize' => true, 'data' => $id, 'method' => 'post'));
  10. debug($result);
  11. }
  12. }
Add Comment
Please, Sign In to add comment