Add some routing, start working on actually searching webmentions

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

No files matched your search

+1 -1
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);
+4
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([