protected function UcAddressesTestCase::assertNoAddressLabel in Ubercart Addresses 7
Same name and namespace in other branches
- 6.2 tests/UcAddressesTestCase.test \UcAddressesTestCase::assertNoAddressLabel()
Pass if an address label is NOT found on the page.
Parameters
UcAddressesAddress $address: The address that should NOT be found on the page.
string $message: Message to display.
Return value
TRUE if the assertion succeeded, FALSE otherwise.
1 call to UcAddressesTestCase::assertNoAddressLabel()
- UcAddressesViewsTestCase::testDefaultView in tests/
uc_addresses.views.test - Tests if the default view works as expected.
File
- tests/
UcAddressesTestCase.test, line 586 - Contains base class for Ubercart Addresses tests.
Class
- UcAddressesTestCase
- Base class for Ubercart Addresses tests.
Code
protected function assertNoAddressLabel(UcAddressesAddress $address, $message = '') {
$message = $message ? $message : t('Address %id found.', array(
'%id' => $address
->getId(),
));
$this
->assertNoRaw(uc_addresses_format_address($address), $message, 'uc_addresses');
}