public function testFindUserByEmail() { setUp(); $this->user = $this->em->getRepository('AppBundle:User')->findUserByEmail("*****@*****.**"); $this->assertEquals("*****@*****.**", $this->user->getEmail()); tearDown(); }
public function setUp() { parent::setUp(); setUp(); $this->obj = $this->getMock('\\BeeHub_Principal_Collection', array('init_members', 'report_principal_property_search'), array('/system/users')); $this->obj->expects($this->any())->method('init_members'); $this->obj->expects($this->any())->method('report_principal_property_search'); }
public function setUp() { // We need to prevent that we continue with tests in a different proces if ($this->alternate_pid) { exit; } parent::setUp(); setUp(); }
public function setUp() { $config = \BeeHub::config(); if (!isset($config['mongo']) || empty($config['mongo']['database'])) { $this->markTestSkipped('No mongoDB database specified; all tests depending on mongoDB are skipped'); return; } setUpDatabase(); parent::setUp(); setUp(); }
public function setUp() { parent::setUp(); setUp(); $_REQUEST['REQUEST_URI'] = '/system/users/jane'; }
public function setUp() { parent::setUp(); setUp(); }
<?php // put this file into your zf2 clone dir. // require 'sudo' for execute 'chown' // $sudo php zf2-jenekins-builds.php $do_chown = isset($argv[1]) && !$argv[1] ? false : true; $builds_dir = __DIR__ . '/builds'; $tests_path = __DIR__ . '/tests/Zend'; $user = '******'; $jobs_dir = '/var/lib/jenkins/jobs'; $jobs_tmp_dir = __DIR__ . '/jobs'; setUp(); run(); echo PHP_EOL; exit(0); function setUp() { global $builds_dir, $tests_path, $jobs_tmp_dir; if (!is_dir($tests_path)) { throw new Exception(); } // mkdir builds ? if (!is_dir($builds_dir)) { mkdir($builds_dir); } if (!is_dir($jobs_tmp_dir)) { mkdir($jobs_tmp_dir); } } /** * make (All component)
public function setUp() { parent::setUp(); setUp(); $this->obj = new \BeeHub_Sponsors('/system/sponsors/'); }
public function setUp() { setUp(); }