You are here

public function ChartServiceTest::testlibrarySelected in Charts 8.4

Same name and namespace in other branches
  1. 8.3 tests/src/Unit/Services/ChartServiceTest.php \Drupal\Tests\charts\Unit\Services\ChartServiceTest::testlibrarySelected()
  2. 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 38

Class

ChartServiceTest
@coversDefaultClass \Drupal\charts\Services\ChartService @group charts

Namespace

Drupal\Tests\charts\Unit\Services

Code

public function testlibrarySelected(string $library) {
  $this->chartService
    ->setLibrarySelected($library);
  $this
    ->assertEquals($library, $this->chartService
    ->getLibrarySelected());
}