1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-08 17:34:26 +03:00
ifhub.club/application/tests/fixtures/CommentFixtures.php

28 lines
600 B
PHP
Raw Normal View History

2013-07-24 18:17:30 +03:00
<?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');
2013-07-24 18:17:30 +03:00
$this->addReference('topic-toshiba-comment', $oTopicComment);
}
}