public function setUp() { TestElement::$bxObject = m::mock('object'); ElementQuery::$cIblockObject = m::mock('cIblockObject'); }
/** * Create testing object with fixed ibId. * * @param $bxObject * * @return ElementQuery */ protected function createQuery($bxObject) { ElementQuery::$cIblockObject = m::mock('ciblockObject'); return new ElementQuery($bxObject, 'Arrilot\\Tests\\BitrixModels\\Stubs\\TestElement'); }