public function ChartAttachmentServiceTest::testAttachmentViews in Charts 8.3
Same name and namespace in other branches
- 8.4 tests/src/Unit/Services/ChartAttachmentServiceTest.php \Drupal\Tests\charts\Unit\Services\ChartAttachmentServiceTest::testAttachmentViews()
- 5.0.x tests/src/Unit/Services/ChartAttachmentServiceTest.php \Drupal\Tests\charts\Unit\Services\ChartAttachmentServiceTest::testAttachmentViews()
Tests getter and setter for attachments.
@dataProvider attachmentViews
Parameters
array $attachmentViews: Array of attachments.
File
- tests/
src/ Unit/ Services/ ChartAttachmentServiceTest.php, line 36
Class
- ChartAttachmentServiceTest
- @coversDefaultClass \Drupal\charts\Services\ChartAttachmentService @group charts
Namespace
Drupal\Tests\charts\Unit\ServicesCode
public function testAttachmentViews(array $attachmentViews) {
$this->chartAttachmentService
->setAttachmentViews($attachmentViews);
$this
->assertArrayEquals($attachmentViews, $this->chartAttachmentService
->getAttachmentViews());
}