Skip to content

Commit

Permalink
Fixed ttsMarkup
Browse files Browse the repository at this point in the history
  • Loading branch information
Lasse Lehtinen committed Nov 28, 2024
1 parent 8728619 commit e98c17b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Groschen.php
Original file line number Diff line number Diff line change
Expand Up @@ -4688,7 +4688,7 @@ public function getSchemaAccessibilityFeatures()
}

// ttsMarkup
if ($this->getProductFormFeatures()->where('ProductFormFeatureType', '09')->where('ProductFormFeatureValue', '21')->count() === 1 || $this->getProductFormFeatures()->where('ProductFormFeatureType', '09')->where('ProductFormFeatureValue', '22')->count() === 1) {
if ($this->getProductFormFeatures()->where('ProductFormFeatureType', '09')->where('ProductFormFeatureValue', '21')->count() === 1 && $this->getProductFormFeatures()->where('ProductFormFeatureType', '09')->where('ProductFormFeatureValue', '22')->count() === 1) {
$schemaAccessibilityFeatures->push('ttsMarkup');
}

Expand Down
4 changes: 2 additions & 2 deletions tests/GroschenIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4537,7 +4537,7 @@ public function testGettingSchemaAccessibilityFeatures()
$schemaAccessibilityFeatures = $groschen->getSchemaAccessibilityFeatures();

$this->assertContains('displayTransformability', $schemaAccessibilityFeatures);
$this->assertContains('ttsMarkup', $schemaAccessibilityFeatures);
$this->assertNotContains('ttsMarkup', $schemaAccessibilityFeatures);
$this->assertContains('structuralNavigation', $schemaAccessibilityFeatures);
$this->assertContains('tableOfContents', $schemaAccessibilityFeatures);

Expand All @@ -4546,7 +4546,7 @@ public function testGettingSchemaAccessibilityFeatures()
$schemaAccessibilityFeatures = $groschen->getSchemaAccessibilityFeatures();

$this->assertContains('displayTransformability', $schemaAccessibilityFeatures);
$this->assertContains('ttsMarkup', $schemaAccessibilityFeatures);
$this->assertNotContains('ttsMarkup', $schemaAccessibilityFeatures);
$this->assertContains('structuralNavigation', $schemaAccessibilityFeatures);
$this->assertContains('tableOfContents', $schemaAccessibilityFeatures);
$this->assertContains('alternativeText', $schemaAccessibilityFeatures);
Expand Down

0 comments on commit e98c17b

Please sign in to comment.