AddressBookCheckoutComponentTest::testShouldRejectExistingIfNotOwnedByMember PHP Метод

testShouldRejectExistingIfNotOwnedByMember() публичный Метод

    public function testShouldRejectExistingIfNotOwnedByMember()
    {
        $this->setExpectedException('ValidationException');
        $this->member->logIn();
        $this->address1->MemberID = 0;
        $this->address1->write();
        $this->assertTrue($this->config->validateData(array('BillingAddressBookCheckoutComponent_BillingAddressID' => $this->address1->ID)));
    }