You are here

public function PasswordTest::testPrepareValueUsingPlainPassword in Feeds 8.3

Tests preparing a plain text password.

@covers ::prepareValue

File

tests/src/Unit/Feeds/Target/PasswordTest.php, line 68

Class

PasswordTest
@coversDefaultClass \Drupal\feeds\Feeds\Target\Password @group feeds

Namespace

Drupal\Tests\feeds\Unit\Feeds\Target

Code

public function testPrepareValueUsingPlainPassword() {
  $target = $this
    ->instantiatePlugin();

  // Test password as a plain text.
  $method = $this
    ->getProtectedClosure($target, 'prepareValue');
  $values = [
    'value' => 'password',
  ];
  $method(0, $values);
  $this
    ->assertSame('password', $values['value']);
}