| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 48 | public function thePageShouldBeIndexable(): void |
||
| 49 | { |
||
| 50 | $this->metaContext->thePageShouldNotBeNoindex(); |
||
| 51 | $this->robotsContext->iShouldBeAbleToCrawl($this->getCurrentUrl()); |
||
| 52 | |||
| 53 | if ($robotsHeaderTag = $this->getResponseHeader('X-Robots-Tag')) { |
||
| 54 | Assert::notContains( |
||
| 55 | strtolower($robotsHeaderTag), |
||
| 56 | 'noindex', |
||
| 57 | sprintf( |
||
| 58 | 'Url %s should not send X-Robots-Tag HTTP header with noindex value: %s', |
||
| 59 | $this->getCurrentUrl(), |
||
| 60 | $robotsHeaderTag |
||
| 61 | ) |
||
| 66 |