1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-05 07:54:24 +03:00
ifhub.club/application/tests/fixtures/CommentFixtures.php
2014-10-08 15:49:34 +07:00

28 lines
600 B
PHP

<?php
require_once(realpath((dirname(__FILE__)) . "/../AbstractFixtures.php"));
class CommentFixtures extends AbstractFixtures
{
/**
* @return int
*/
public static function getOrder()
{
return 4;
}
/**
* Create Comment
*/
public function load()
{
$oUserFirst = $this->getReference('user-golfer');
$oTopic = $this->getReference('topic-toshiba');
$oTopicComment = $this->_createComment($oTopic, $oUserFirst, null, 'fixture comment text');
$this->addReference('topic-toshiba-comment', $oTopicComment);
}
}