public function testDeletePolicy()
 {
     $policy = $this->testCreatePolicy();
     $this->_policyBackend->delete($policy);
     $this->setExpectedException('Tinebase_Exception_NotFound');
     $this->_policyBackend->get($policy);
 }
示例#2
0
        PHPUnit_TextUI_TestRunner::run($suite);
    }
    public static function getTestPolicy()
    {
        /*$testPolicy = new ActiveSync_Model_Policy(array(
              'deviceid'      => Tinebase_Record_Abstract::generateUID(64),
              'devicetype'    => 'iPhone',
              'owner_id'      => Tinebase_Core::getUser()->getId(),
              'policy_id'     => 'unset'
          ));*/
    }
    protected function setUp()
    {
    }
    /**
     * Tears down the fixture
     * This method is called after a test is executed.
     *
     * @access protected
     */
    protected function tearDown()
    {
    }
    public function testGetChanged()
    {
        $this->markTestIncomplete();
    }
}
if (PHPUnit_MAIN_METHOD == 'ActiveSync_Backend_Policy::main') {
    ActiveSync_Backend_Policy::main();
}