You are here

public function JuicerSimpleTest::testJuicerConfigFormMenu in Juicer - Social Media Feed Aggregator 8

Test Juicer page.

Enable Juicer and see if it can successfully return its main page.

File

tests/src/Functional/JuicerSimpleTest.php, line 73

Class

JuicerSimpleTest
Ensure that the juicerio content type provided functions properly.

Namespace

Drupal\Tests\juicerio\Functional

Code

public function testJuicerConfigFormMenu() {

  // Verify that authenticated users with correct perms can access
  // the config page.
  // Create a user.
  $test_user = $this
    ->drupalCreateUser([
    'administer juicer',
  ]);

  // Log them in.
  $this
    ->drupalLogin($test_user);
  $this
    ->drupalGet('admin/config/services/juicerio');
  $this
    ->assertResponse(200);
}