public function testAppendDefaultQuerySuffixForEndsWith() { $expr1 = Expr::endsWith('.css', AssetMapping::GLOB); $expr2 = Expr::same(BindingState::ENABLED, BindingDescriptor::STATE)->andSame(AssetPlugin::BINDING_TYPE, BindingDescriptor::TYPE_NAME)->andEndsWith('{,/**/*}', BindingDescriptor::QUERY)->andEndsWith('.css{,/**/*}', BindingDescriptor::QUERY); $this->assertEquals($expr2, $this->builder->buildExpression($expr1)); }
/** * {@inheritdoc} */ public function hasAssetMappings(Expression $expr = null) { return $this->discoveryManager->hasBindings($this->exprBuilder->buildExpression($expr)); }