/**
  * tearDown
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->Category);
     unset($this->CategoryOrder);
     unset($this->Block);
     parent::tearDown();
 }
 /**
  * setUp method
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     // PageLayout対応
     YACakeTestCase::loadTestPlugin($this, 'NetCommons', 'TestPlugin');
     $this->generate('Videos.VideosEdit', array('components' => array('Auth' => array('user'), 'Session', 'Security')));
 }
 /**
  * testIndex method
  *
  * @return void
  */
 public function testIndex()
 {
     Configure::write('Config.language', 'ja');
     YACakeTestCase::loadTestPlugin($this, 'NetCommons', 'TestPlugin');
     $this->testAction('/public_space/public_space/index', array('return' => 'view'));
     $this->assertTextContains('<div class="box-site">', $this->view);
 }
 /**
  * setUp
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     YACakeTestCase::loadTestPlugin($this, 'NetCommons', 'TestPlugin');
     Configure::write('Config.language', 'ja');
     $this->Questionnaire = ClassRegistry::init('Questionnaires.Questionnaire');
 }
 /**
  * setUp
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     Configure::write('Config.language', 'ja');
     YACakeTestCase::loadTestPlugin($this, 'NetCommons', 'TestPlugin');
     $this->generate('AccessCounters.AccessCounters', ['components' => ['Auth' => ['user'], 'Session', 'Security']]);
 }
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->Block);
     unset($this->RssReader);
     unset($this->RssReaderItem);
     unset($this->RssReaderFrameSetting);
     parent::tearDown();
 }
Beispiel #7
0
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->FileModel);
     unset($this->FilesPlugin);
     unset($this->FilesRoom);
     unset($this->FilesUser);
     $this->tearDownFiles();
     parent::tearDown();
 }
Beispiel #8
0
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->Bbs);
     unset($this->BbsFrameSetting);
     unset($this->BbsArticle);
     unset($this->BbsArticlesUser);
     unset($this->Comment);
     parent::tearDown();
 }
Beispiel #9
0
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->Block);
     unset($this->Video);
     unset($this->VideoBlockSetting);
     unset($this->VideoFrameSetting);
     unset($this->VideoViewLog);
     CakeSession::write('Auth.User', null);
     parent::tearDown();
 }
 /**
  * setUp
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     // PageLayout対応
     YACakeTestCase::loadTestPlugin($this, 'NetCommons', 'TestPlugin');
     Configure::write('Config.language', 'ja');
     //テストコントローラ読み込み
     $this->generate('ContentComments.TestContentComments', array('components' => array('Auth' => array('user'), 'Session', 'Security')));
     // $this->controller->request->is('ajax') を成功させるために必要
     $this->controller->request = new CakeRequest();
     $this->controller->response = new CakeResponse();
     //コンポーネント読み込み
     $collection = new ComponentCollection();
     $this->contentComments = new ContentCommentsComponent($collection);
     $this->contentComments->viewSetting = false;
 }
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->ThemeSettingsSite);
     unset($this->siteValue);
     parent::tearDown();
 }
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->SearchBox);
     parent::tearDown();
 }
Beispiel #13
0
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->Topic);
     unset($this->TopicFrameSetting);
     parent::tearDown();
 }
Beispiel #14
0
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->BoxesPage);
     parent::tearDown();
 }
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->Block);
     unset($this->Frame);
     parent::tearDown();
 }
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->ContainersPage);
     parent::tearDown();
 }
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->Edumap);
     unset($this->EdumapStudent);
     unset($this->EdumapSocialMedium);
     unset($this->EdumapVisibilitySetting);
     unset($this->FileModel);
     parent::tearDown();
 }
 /**
  * setUp
  *
  * @return   void
  */
 public function setUp()
 {
     parent::setUp();
     YACakeTestCase::loadTestPlugin($this, 'NetCommons', 'TestPlugin');
     $this->generate('Frames.Frames', ['components' => ['Auth' => ['user'], 'Session', 'Security']]);
 }
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->DefaultRolePermission);
     parent::tearDown();
 }
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->BlockRolePermission);
     parent::tearDown();
 }
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->Comment);
     parent::tearDown();
 }
Beispiel #22
0
 /**
  * Expect Topic->afterFrameSave() fail on topic frame setting save
  * e.g.) connection error
  *
  * @return void
  */
 public function testSearchableModelSaveFail()
 {
     $this->setExpectedException('InternalErrorException');
     $topicMock = $this->getMockForModel('Topics.Topic', ['save']);
     $topicMock->expects($this->any())->method('save')->will($this->returnValue(false));
     YACakeTestCase::loadTestPlugin($this, 'Topics', 'SearchablePlugin');
     $this->SearchableModel = ClassRegistry::init('SearchablePlugin.SearchableModel');
     $expectCount = $this->Topic->find('count', ['recursive' => -1]) + 1;
     $this->SearchableModel->saveTopic(['block_id' => 191, 'status' => NetCommonsBlockComponent::STATUS_PUBLISHED, 'is_active' => true, 'is_latest' => true, 'is_auto_translated' => true, 'is_first_auto_translation' => true, 'translation_engine' => '', 'title' => 'title', 'contents' => 'contents', 'plugin_key' => 'searchable', 'path' => '/searchable/searchable/view/191', 'from' => date('Y-m-d H:i:s')]);
     $this->assertEquals($expectCount, $this->Topic->find('count', ['recursive' => -1]));
 }
Beispiel #23
0
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->Like);
     parent::tearDown();
 }
 /**
  * setUp
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     YACakeTestCase::loadTestPlugin($this, 'NetCommons', 'TestPlugin');
     Configure::write('Config.language', 'ja');
 }
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     unset($this->AccessCounter);
 }
 /**
  * tearDown
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     unset($this->Categories);
     unset($this->CategoryController);
     Configure::write('Config.language', null);
 }
 /**
  * setUp method
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     YACakeTestCase::loadTestPlugin($this, 'NetCommons', 'TestPlugin');
 }
Beispiel #28
0
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->Container);
     Configure::write('Config.languageId', null);
     parent::tearDown();
 }
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->PluginsRoom);
     parent::tearDown();
 }