Skip to content

Commit

Permalink
Update test/OrchardCore.Tests/Orchard.Queries/SqlParserTests.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Hisham Bin Ateya <[email protected]>
  • Loading branch information
sebastienros and hishamco authored Nov 7, 2024
1 parent 699647e commit 9a4a963
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/OrchardCore.Tests/Orchard.Queries/SqlParserTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,10 @@ public void ShouldParseSubquery(string sql, string expectedSql)
[InlineData("select a order by random", "SELECT [a] ORDER BY [random];")]
public void ShouldOrderByRandom(string sql, string expectedSql)
{
// Arrange & Act
var result = SqlParser.TryParse(sql, _schema, _defaultDialect, _defaultTablePrefix, null, out var rawQuery, out var errors);

// Assert
Assert.True(result);
Assert.Equal(expectedSql, FormatSql(rawQuery));
}
Expand Down

0 comments on commit 9a4a963

Please sign in to comment.