本文整理汇总了PHP中Webmozart\Assert\Assert::false方法的典型用法代码示例。如果您正苦于以下问题:PHP Assert::false方法的具体用法?PHP Assert::false怎么用?PHP Assert::false使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Webmozart\Assert\Assert
的用法示例。
在下文中一共展示了Assert::false方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: chooseDifferentBillingAddress
/**
* {@inheritdoc}
*/
public function chooseDifferentBillingAddress()
{
$driver = $this->getDriver();
if ($driver instanceof Selenium2Driver) {
$this->getElement('different_billing_address_label')->click();
return;
}
$billingAddressSwitch = $this->getElement('different_billing_address');
Assert::false($billingAddressSwitch->isChecked(), 'Previous state of different billing address switch was true expected to be false');
$billingAddressSwitch->check();
}
示例2: theCurrencyShouldNotBeAdded
/**
* @Then the currency :currencyName should not be added
*/
public function theCurrencyShouldNotBeAdded($currencyName)
{
$this->indexPage->open();
Assert::false($this->indexPage->isSingleResourceOnPage(['name' => $currencyName]), sprintf('Currency with name %s was created, but it should not.', $currencyName));
}
示例3: promotionShouldNotExistInTheRegistry
/**
* @Then /^(this promotion) should no longer exist in the promotion registry$/
*/
public function promotionShouldNotExistInTheRegistry(PromotionInterface $promotion)
{
$this->indexPage->open();
Assert::false($this->indexPage->isSingleResourceOnPage(['code' => $promotion->getCode()]), sprintf('Promotion with code %s exists but should not.', $promotion->getCode()));
}
示例4: thereShouldBeNoAnymore
/**
* @Then there should not be :email administrator anymore
*/
public function thereShouldBeNoAnymore($email)
{
Assert::false($this->indexPage->isSingleResourceOnPage(['email' => $email]), sprintf('Administrator with %s email should be deleted', $email));
}
示例5: provinceWithCodeShouldNotBeAdded
/**
* @Then /^province with code "([^"]*)" should not be added in (this country)$/
*/
public function provinceWithCodeShouldNotBeAdded($provinceCode, CountryInterface $country)
{
$this->updatePage->open(['id' => $country->getId()]);
Assert::false($this->updatePage->isThereProvinceWithCode($provinceCode), sprintf('%s is a province of this country.', $provinceCode));
}
示例6: iShouldNotBeAbleToChoose
/**
* @Then I should not be able to choose :name
*/
public function iShouldNotBeAbleToChoose($name)
{
Assert::false($this->createPage->isOptionAvailable($name), sprintf('I can choose %s, but i should not be able to do it', $name));
}
示例7: iShouldBeUnableToEditTheirAddress
/**
* @Then I should be unable to edit their address
*/
public function iShouldBeUnableToEditTheirAddress()
{
$address = $this->getAddressOf($this->sharedStorage->getLatestResource());
Assert::false($this->addressBookUpdatePage->isOpen(['id' => $address->getId()]), sprintf('I should be unable to edit the address of "%s %s"', $address->getFirstName(), $address->getLastName()));
}
示例8: thisZoneShouldNoLongerExistInTheRegistry
/**
* @Then the zone named :zoneName should no longer exist in the registry
*/
public function thisZoneShouldNoLongerExistInTheRegistry($zoneName)
{
Assert::false($this->indexPage->isSingleResourceOnPage(['name' => $zoneName]), sprintf('Zone named %s should no longer exist', $zoneName));
}
示例9: thisProductShouldNotHaveAnImageWithCode
/**
* @Then /^(this product) should not have(?:| also) an image with a code "([^"]*)"$/
*/
public function thisProductShouldNotHaveAnImageWithCode(ProductInterface $product, $code)
{
/** @var UpdateSimpleProductPageInterface|UpdateConfigurableProductPageInterface $currentPage */
$currentPage = $this->currentPageResolver->getCurrentPageWithForm([$this->updateSimpleProductPage, $this->updateConfigurableProductPage], $product);
Assert::false($currentPage->isImageWithCodeDisplayed($code), sprintf('Image with a code %s should not have been displayed.', $code));
}
示例10: channelShouldNotHaveDefaultTaxZone
/**
* @Given channel :channel should not have default tax zone
*/
public function channelShouldNotHaveDefaultTaxZone(ChannelInterface $channel)
{
$this->updatePage->open(['id' => $channel->getId()]);
Assert::false($this->updatePage->isAnyDefaultTaxZoneChosen(), 'Channel should not have default tax zone, but it has.');
}
示例11: assertExchangeRateIsNotOnTheList
/**
* @param string $sourceCurrencyName
* @param string $targetCurrencyName
*
* @throws \InvalidArgumentException
*/
private function assertExchangeRateIsNotOnTheList($sourceCurrencyName, $targetCurrencyName)
{
Assert::false($this->indexPage->isSingleResourceOnPage(['sourceCurrency' => $sourceCurrencyName, 'targetCurrency' => $targetCurrencyName]), sprintf('An exchange rate with source currency %s and target currency %s has been found on the list.', $sourceCurrencyName, $targetCurrencyName));
}
示例12: iShouldNotSeeProduct
/**
* @Then I should not see the product :productName
*/
public function iShouldNotSeeProduct($productName)
{
Assert::false($this->taxonShowPage->isProductInList($productName), sprintf("The product %s should not appear on page, but it does.", $productName));
}
示例13: thisPaymentMethodShouldNoLongerExistInTheRegistry
/**
* @Then /^(this payment method) should no longer exist in the registry$/
*/
public function thisPaymentMethodShouldNoLongerExistInTheRegistry(PaymentMethodInterface $paymentMethod)
{
Assert::false($this->indexPage->isSingleResourceOnPage(['code' => $paymentMethod->getCode(), 'name' => $paymentMethod->getName()]), sprintf('Payment method %s should no longer exist in the registry', $paymentMethod->getName()));
}
示例14: iShouldBeUnableToResendVerificationEmail
/**
* @Then I should not be able to resend the verification email
*/
public function iShouldBeUnableToResendVerificationEmail()
{
$this->dashboardPage->open();
Assert::false($this->dashboardPage->hasResendVerificationEmailButton(), 'You should not be able to resend the verification email.');
}
示例15: theStaticContentShouldNoLongerExistInTheStore
/**
* @Then the static content :title should no longer exist in the store
*/
public function theStaticContentShouldNoLongerExistInTheStore($title)
{
Assert::false($this->indexPage->isSingleResourceOnPage(['title' => $title]), sprintf('Static content with title %s exists, but should not.', $title));
}