Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Configure::write('currentDataSource', 'testdb');
- $dataSource = Configure::read('currentDataSource');
- $this->setDataSource($dataSource);
- class ProjectsControllerTest extends CakeTestCase{
- function testEmailNewProject()
- {
- $id = 2008098;
- $result = $this->testAction('/projects/emailNewProject', array('fixturize' => true, 'data' => $id, 'method' => 'post'));
- debug($result);
- }
- }
Add Comment
Please, Sign In to add comment