forked from solariumphp/solarium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Solr 9.4 → 9.5 for integration tests (solariumphp#1121)
- Loading branch information
1 parent
ae4ea59
commit c9ba8b5
Showing
9 changed files
with
99 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
namespace Solarium\Tests\Integration\Query; | ||
|
||
use PHPUnit\Framework\TestCase; | ||
use Solarium\Component\QueryInterface; | ||
|
||
class CustomQueryClassTest extends TestCase | ||
{ | ||
/** | ||
* Test the various return types that are valid for custom query classes that | ||
* override the {@see \Solarium\Component\QueryTrait::setQuery()} method. | ||
* | ||
* If this test throws a fatal error, the return type of the parent might no | ||
* longer be backward compatible with existing code that overrides it. | ||
* | ||
* @see https://github.com/solariumphp/solarium/issues/1097 | ||
* | ||
* @dataProvider customQueryClassProvider | ||
*/ | ||
public function testCustomQueryClassSetQueryReturnType(string $queryClass) | ||
{ | ||
$query = new $queryClass(); | ||
$this->assertInstanceOf(QueryInterface::class, $query->setQuery('*:*')); | ||
} | ||
|
||
public function customQueryClassProvider(): array | ||
{ | ||
return [ | ||
[CustomStaticQuery::class], | ||
[CustomSelfQuery::class], | ||
[CustomQueryInterfaceQuery::class], | ||
]; | ||
} | ||
} |