public function ChartServiceTest::testlibrarySelected in Charts 8.3
Same name and namespace in other branches
- 8.4 tests/src/Unit/Services/ChartServiceTest.php \Drupal\Tests\charts\Unit\Services\ChartServiceTest::testlibrarySelected()
- 5.0.x tests/src/Unit/Services/ChartServiceTest.php \Drupal\Tests\charts\Unit\Services\ChartServiceTest::testlibrarySelected()
Tests getter and setter for librarySelected.
@dataProvider libraryProvider
Parameters
string $library: The name of the library.
File
- tests/
src/ Unit/ Services/ ChartServiceTest.php, line 36
Class
- ChartServiceTest
- @coversDefaultClass \Drupal\charts\Services\ChartService @group charts
Namespace
Drupal\Tests\charts\Unit\ServicesCode
public function testlibrarySelected(string $library) {
$this->chartService
->setLibrarySelected($library);
$this
->assertEquals($library, $this->chartService
->getLibrarySelected());
}