Add some routing, start working on actually searching webmentions

This commit is contained in:
Lewis Dale 2023-03-09 21:54:45 +00:00
parent 45024faa5f
commit 02f7331c7d
2 changed files with 5 additions and 1 deletions

View File

@ -107,7 +107,7 @@ class SqliteGateway extends WebmentionGatewayInterface {
SELECT * FROM webmentions SELECT * FROM webmentions
WHERE {$keys} WHERE {$keys}
SQL; SQL;
$statement = $this->connection->prepare($sql); $statement = $this->connection->prepare($sql);
$statement->execute($values); $statement->execute($values);

View File

@ -120,6 +120,10 @@ class SqliteGatewayTest extends TestCase
"Some Author Name" "Some Author Name"
)); ));
$this->gateway->find([
"id; DROP TABLE webmentions;" => 'whatever'
]);
$this->assertCount( $this->assertCount(
2, 2,
$this->gateway->find([ $this->gateway->find([