Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a656427aec | ||
|
|
26a623b4f6 |
+8
-1
@@ -182,7 +182,11 @@
|
|||||||
"wikimedia/composer-merge-plugin": true,
|
"wikimedia/composer-merge-plugin": true,
|
||||||
"zaporylie/composer-drupal-optimizations": true,
|
"zaporylie/composer-drupal-optimizations": true,
|
||||||
"drupal/core-project-message": true,
|
"drupal/core-project-message": true,
|
||||||
"symfony/runtime": true
|
"symfony/runtime": true,
|
||||||
|
"phpstan/extension-installer": true,
|
||||||
|
"dealerdirect/phpcodesniffer-composer-installer": true,
|
||||||
|
"php-http/discovery": false,
|
||||||
|
"tbachert/spi": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -319,5 +323,8 @@
|
|||||||
".gitattributes": "../.gitattributes"
|
".gitattributes": "../.gitattributes"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"drupal/core-dev": "^11.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+5057
-46
File diff suppressed because it is too large
Load Diff
@@ -5,18 +5,16 @@ declare(strict_types=1);
|
|||||||
namespace Drupal\Tests\materio_sapi\Unit;
|
namespace Drupal\Tests\materio_sapi\Unit;
|
||||||
|
|
||||||
use Drupal\materio_sapi\RankFusion;
|
use Drupal\materio_sapi\RankFusion;
|
||||||
use PHPUnit\Framework\TestCase;
|
use Drupal\Tests\UnitTestCase;
|
||||||
|
use PHPUnit\Framework\Attributes\CoversClass;
|
||||||
// No Drupal bootstrap needed: RankFusion is plain PHP.
|
use PHPUnit\Framework\Attributes\Group;
|
||||||
require_once __DIR__ . '/../../../src/RankFusion.php';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests the merge of the keyword and kNN rankings (H5).
|
* Tests the merge of the keyword and kNN rankings (H5).
|
||||||
*
|
|
||||||
* @coversDefaultClass \Drupal\materio_sapi\RankFusion
|
|
||||||
* @group materio_sapi
|
|
||||||
*/
|
*/
|
||||||
final class RankFusionTest extends TestCase {
|
#[CoversClass(RankFusion::class)]
|
||||||
|
#[Group('materio_sapi')]
|
||||||
|
final class RankFusionTest extends UnitTestCase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exact matches stay first, in their order, even when ranked low elsewhere.
|
* Exact matches stay first, in their order, even when ranked low elsewhere.
|
||||||
|
|||||||
Reference in New Issue
Block a user