Skip to content

Commit

Permalink
Add test for legacy datacontainer config
Browse files Browse the repository at this point in the history
  • Loading branch information
bytehead committed Apr 26, 2022
1 parent 211cfca commit 1dd7287
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions core-bundle/tests/Picker/TablePickerProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ public function testName(): void
$this->assertSame('tablePicker', $provider->getName());
}

public function testSupportsLegacyContext(): void
{
$GLOBALS['TL_DCA']['tl_foobar']['config']['dataContainer'] = 'Table';
$GLOBALS['BE_MOD']['foo']['bar']['tables'] = ['tl_foobar'];

$provider = $this->createTableProvider($this->mockFrameworkWithDcaLoader('tl_foobar'));

$this->assertTrue($provider->supportsContext('dc.tl_foobar'));
}

public function testSupportsContext(): void
{
$GLOBALS['TL_DCA']['tl_foobar']['config']['dataContainer'] = DC_Table::class;
Expand Down

0 comments on commit 1dd7287

Please sign in to comment.