protected static function assertRendersCss(ViewComponentInterface $component, $url) { $output = $component->render(); self::assertStringStartsWith('<link ', $output); self::assertContains("href=\"{$url}\"", $output); }
/** * @param ViewComponentInterface|AutoSubmittingInputInterface $component */ protected function assertTurnedOn($component) { self::assertContains($this->submitScriptMarker, $component->render()); self::assertTrue($component->isAutoSubmitted()); self::assertTrue($component->getAutoSubmitting()); }