public function get_seed() { //Seed DB $project = new Project(); $project->fill(array('name' => 'Test Project Name', 'description' => 'A test project to get started.')); $project->save(); $issue = new Issue(); $issue->fill(array('summary' => "This is a sample issue", 'description' => "This is a description of a sample issue. That's all.", 'reporter' => '*****@*****.**', 'project_id' => $project->id)); $issue->save(); $comment = new Comment(); $comment->fill(array('issue_id' => $issue->id, 'comment' => 'This is a comment', 'commentor' => '*****@*****.**')); $comment->save(); $comment = new Comment(); $comment->fill(array('issue_id' => $issue->id, 'comment' => 'This is another comment', 'commentor' => '*****@*****.**')); $comment->save(); }
public function testIssues() { Bundle::start('flyswatter'); // Seed Database Controller::call('flyswatter::seed@seed'); $issue = Issue::find(1); $this->assertNotNull($issue->id); }