상속: extends PHPUnit_Framework_TestCase
예제 #1
0
 /**
  * Get a singleton instance of test user
  *
  * @param  string|null $accessToken
  * @return \OldTimeGuitarGuy\Plaid\Contracts\User
  */
 protected function user($accessToken = null)
 {
     if (!is_null($accessToken) && $accessToken !== 'test_wells') {
         return new TestUser($accessToken);
     }
     if (isset(self::$user)) {
         return self::$user;
     }
     return self::$user = new TestUser('test_wells');
 }
예제 #2
0
<?php

require_once '../de/appwerk/radio/test/ServiceTest.php';
$st = new ServiceTest();
$st->testSnapshotUpload();
exit(1);
 /**
  * Test set up
  */
 public function setUp()
 {
     parent::setUp();
     $this->service = new SearchMediaService($this->appName, $this->environment, $this->logger);
 }
예제 #4
0
파일: recupload.php 프로젝트: vberzsin/2014
<?php

require_once '../de/appwerk/radio/test/ServiceTest.php';
$st = new ServiceTest();
$st->testRecUpload();
exit(1);
예제 #5
0
파일: tracking.php 프로젝트: vberzsin/2014
<?php

require_once '../de/appwerk/radio/test/RootDBUtilsTest.php';
$u = new RootDBUtilsTest();
// $u->setupCommentDB();
// $u->setupTrackingDB();
require_once '../de/appwerk/radio/test/TrackingUtilsTest.php';
$t = new TrackingUtilsTest();
$t->addTrack();
require_once '../de/appwerk/radio/test/ServiceTest.php';
$s = new ServiceTest();
$s->addTrack();
$s->addTrackJ();
exit(1);
예제 #6
0
 /**
  * Test set up
  */
 public function setUp()
 {
     parent::setUp();
     $this->configParser = $this->getMockBuilder('\\OCA\\GalleryPlus\\Service\\ConfigParser')->disableOriginalConstructor()->getMock();
     $this->service = new ConfigService($this->appName, $this->environment, $this->configParser, $this->logger);
 }
예제 #7
0
<?php

require_once '../de/appwerk/radio/test/KommentariUtilsTest.php';
require_once '../de/appwerk/radio/test/ServiceTest.php';
$t = new KommentariUtilsTest();
$t->addComment();
$t->deleteComment();
$t->releaseComment();
$t->listRecComments();
$t->listImgComments();
$t->listMsgComments();
$t->listMsgCommentsByRadioAndTypeId();
$t->addMsgComment();
$s = new ServiceTest();
$s->addMsgComment();
$t->placeTmpLink();
exit(1);
예제 #8
0
파일: service.php 프로젝트: vberzsin/2014
<?php

require_once '../de/appwerk/radio/test/ServiceTest.php';
$st = new ServiceTest();
/*
$st->auth();
$st->saveLayout();
$st->saveLayoutJSON();
$st->addLayout();
$st->addRole();

$st->updateTenant();
$st->addTenant();
$st->addTenant();
$st->addTenant();
$st->addTenant();
$st->addTenant();
$st->removeTenant();

$st->loadRadioScreen();
*/
$st->iLike();
exit(1);