当前位置: 首页>>代码示例>>PHP>>正文


PHP Assert::false方法代码示例

本文整理汇总了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();
 }
开发者ID:sylius,项目名称:sylius,代码行数:14,代码来源:AddressPage.php

示例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));
 }
开发者ID:loic425,项目名称:Sylius,代码行数:8,代码来源:ManagingCurrenciesContext.php

示例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()));
 }
开发者ID:TheMadeleine,项目名称:Sylius,代码行数:8,代码来源:ManagingPromotionsContext.php

示例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));
 }
开发者ID:loic425,项目名称:Sylius,代码行数:7,代码来源:ManagingAdministratorsContext.php

示例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));
 }
开发者ID:sylius,项目名称:sylius,代码行数:8,代码来源:ManagingCountriesContext.php

示例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));
 }
开发者ID:ReissClothing,项目名称:Sylius,代码行数:7,代码来源:ManagingLocalesContext.php

示例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()));
 }
开发者ID:sylius,项目名称:sylius,代码行数:8,代码来源:AddressBookContext.php

示例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));
 }
开发者ID:ReissClothing,项目名称:Sylius,代码行数:7,代码来源:ManagingZonesContext.php

示例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));
 }
开发者ID:TheMadeleine,项目名称:Sylius,代码行数:9,代码来源:ManagingProductsContext.php

示例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.');
 }
开发者ID:ReissClothing,项目名称:Sylius,代码行数:8,代码来源:ManagingChannelsContext.php

示例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));
 }
开发者ID:sylius,项目名称:sylius,代码行数:10,代码来源:ManagingExchangeRatesContext.php

示例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));
 }
开发者ID:okwinza,项目名称:Sylius,代码行数:7,代码来源:ProductContext.php

示例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()));
 }
开发者ID:sylius,项目名称:sylius,代码行数:7,代码来源:ManagingPaymentMethodsContext.php

示例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.');
 }
开发者ID:sylius,项目名称:sylius,代码行数:8,代码来源:RegistrationContext.php

示例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));
 }
开发者ID:ReissClothing,项目名称:Sylius,代码行数:7,代码来源:ManagingStaticContentsContext.php


注:本文中的Webmozart\Assert\Assert::false方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。