public function testCreateComment() { Scripts::LoginUser('*****@*****.**', 'Gates123'); Scripts::CreateComentary(); $newcomment = RedBean::load('comments', 2); $this->assertEquals($newcomment->content, 'the theory of relativity is fake.'); $this->assertEquals($newcomment->ideaid, '3'); $this->assertEquals($newcomment->userid, '4'); }