Unverified Commit 824ef2ea authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3108006 by mondrake, ravi.shankar, longwave: Replace...

Issue #3108006 by mondrake, ravi.shankar, longwave: Replace assertInternalType() calls with dedicated methods

(cherry picked from commit 221b7aed)
parent 2d0a139c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ protected function setUp() {
   */
  protected function assertDisplay($id, $component_id) {
    $component = EntityViewDisplay::load($id)->getComponent($component_id);
    $this->assertInternalType('array', $component);
    $this->assertIsArray($component);
    $this->assertSame('hidden', $component['label']);
  }

+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ protected function setUp() {
   */
  protected function assertDisplay($id, $component_id) {
    $component = EntityFormDisplay::load($id)->getComponent($component_id);
    $this->assertInternalType('array', $component);
    $this->assertIsArray($component);
    $this->assertSame('text_textarea_with_summary', $component['type']);
  }

+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ public function testGetConfig($language_list, $expected_number) {

    $config = $this->plugin->getConfig($editor);

    $this->assertInternalType('array', $config);
    $this->assertIsArray($config);
    $this->assertTrue(in_array('ar:Arabic:rtl', $config['language_list']));
    $this->assertTrue(in_array('zh-hans:Chinese, Simplified', $config['language_list']));
    $this->assertTrue(in_array('en:English', $config['language_list']));
+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ protected function setUp() {
   */
  protected function assertDisplay($id, $component_id) {
    $component = EntityViewDisplay::load($id)->getComponent($component_id);
    $this->assertInternalType('array', $component);
    $this->assertIsArray($component);
    $this->assertSame('hidden', $component['label']);
    $this->assertSame('comment_default', $component['type']);
    $this->assertSame(20, $component['weight']);
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ protected function setUp() {
   */
  protected function assertSubjectVisible($id) {
    $component = EntityFormDisplay::load($id)->getComponent('subject');
    $this->assertInternalType('array', $component);
    $this->assertIsArray($component);
    $this->assertSame('string_textfield', $component['type']);
    $this->assertSame(10, $component['weight']);
  }
Loading