You are here

private function OAuthKeyFormTest::assertKey in Lightning API 8.4

Same name and namespace in other branches
  1. 8 tests/src/Kernel/OAuthKeyFormTest.php \Drupal\Tests\lightning_api\Kernel\OAuthKeyFormTest::assertKey()
  2. 8.2 tests/src/Kernel/OAuthKeyFormTest.php \Drupal\Tests\lightning_api\Kernel\OAuthKeyFormTest::assertKey()
  3. 8.3 tests/src/Kernel/OAuthKeyFormTest.php \Drupal\Tests\lightning_api\Kernel\OAuthKeyFormTest::assertKey()
1 call to OAuthKeyFormTest::assertKey()
OAuthKeyFormTest::testForm in tests/src/Kernel/OAuthKeyFormTest.php

File

tests/src/Kernel/OAuthKeyFormTest.php, line 40

Class

OAuthKeyFormTest
@group lightning_api

Namespace

Drupal\Tests\lightning_api\Kernel

Code

private function assertKey($path) {
  $this
    ->assertFileExists($path);
  $this
    ->assertSame(OAuthKey::PERMISSIONS, fileperms($path) & 0777);
  $this->container
    ->get('file_system')
    ->unlink($path);
}