Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace Drupal\Tests\aggregator\Kernel\Views; use Drupal\aggregator\Entity\Feed;..

Decoded Output download

<?php

namespace Drupal\Testsggregator\Kernel\Views;

use Drupalggregator\Entity\Feed;
use Drupal\Testsiews\Kernel\Handler\FieldFieldAccessTestBase;

/**
 * Tests base field access in Views for the aggregator_feed entity.
 *
 * @group aggregator
 */
class AggregatorFeedViewsFieldAccessTest extends FieldFieldAccessTestBase {

  /**
   * {@inheritdoc}
   */
  public static $modules = ['aggregator', 'entity_test', 'options'];

  /**
   * {@inheritdoc}
   */
  protected function setUp($import_test_views = TRUE) {
    parent::setUp($import_test_views);

    $this->installEntitySchema('aggregator_feed');
  }

  /**
   * Checks access for aggregator_feed fields.
   */
  public function testAggregatorFeedFields() {
    $feed = Feed::create([
      'title' => 'Drupal org',
      'url' => 'https://www.drupal.org/rss.xml',
      'link' => 'https://www.drupal.org/rss.xml',
    ]);
    $feed->save();

    // @todo Expand the test coverage in https://www.drupal.org/node/2464635

    // $this->assertFieldAccess('aggregator_feed', 'title', $feed->label());
    $this->assertFieldAccess('aggregator_feed', 'langcode', $feed->language()->getName());
    $this->assertFieldAccess('aggregator_feed', 'url', $feed->getUrl());
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Drupal\Tests\aggregator\Kernel\Views;

use Drupal\aggregator\Entity\Feed;
use Drupal\Tests\views\Kernel\Handler\FieldFieldAccessTestBase;

/**
 * Tests base field access in Views for the aggregator_feed entity.
 *
 * @group aggregator
 */
class AggregatorFeedViewsFieldAccessTest extends FieldFieldAccessTestBase {

  /**
   * {@inheritdoc}
   */
  public static $modules = ['aggregator', 'entity_test', 'options'];

  /**
   * {@inheritdoc}
   */
  protected function setUp($import_test_views = TRUE) {
    parent::setUp($import_test_views);

    $this->installEntitySchema('aggregator_feed');
  }

  /**
   * Checks access for aggregator_feed fields.
   */
  public function testAggregatorFeedFields() {
    $feed = Feed::create([
      'title' => 'Drupal org',
      'url' => 'https://www.drupal.org/rss.xml',
      'link' => 'https://www.drupal.org/rss.xml',
    ]);
    $feed->save();

    // @todo Expand the test coverage in https://www.drupal.org/node/2464635

    // $this->assertFieldAccess('aggregator_feed', 'title', $feed->label());
    $this->assertFieldAccess('aggregator_feed', 'langcode', $feed->language()->getName());
    $this->assertFieldAccess('aggregator_feed', 'url', $feed->getUrl());
  }

}

Function Calls

None

Variables

None

Stats

MD5 f33be285ac398968a4b9e954a262484e
Eval Count 0
Decode Time 89 ms