From f7bea3acc0a1d713c2c2505794a7e5547004d1a0 Mon Sep 17 00:00:00 2001 From: silaskenneth Date: Thu, 2 May 2024 17:24:20 +0300 Subject: [PATCH] Add the refine step in the testing for multipart. --- .../Kiota.Builder.Tests/Writers/Php/CodeMethodWriterTests.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/Kiota.Builder.Tests/Writers/Php/CodeMethodWriterTests.cs b/tests/Kiota.Builder.Tests/Writers/Php/CodeMethodWriterTests.cs index 07ae219b9d..b1233a7f84 100644 --- a/tests/Kiota.Builder.Tests/Writers/Php/CodeMethodWriterTests.cs +++ b/tests/Kiota.Builder.Tests/Writers/Php/CodeMethodWriterTests.cs @@ -2509,7 +2509,7 @@ public void WritesRequestGeneratorContentTypeQuotes() Assert.Contains("\"application/json; profile=\\\"CamelCase\\\"\"", result); } [Fact] - public void WritesRequestGeneratorBodyForMultipart() + public async Task WritesRequestGeneratorBodyForMultipart() { setup(); method.Kind = CodeMethodKind.RequestGenerator; @@ -2522,9 +2522,10 @@ public void WritesRequestGeneratorBodyForMultipart() IsExternal = true }; method.RequestBodyContentType = "multipart/form-data"; + await _refiner.Refine(root, new CancellationToken(false)); languageWriter.Write(method); var result = stringWriter.ToString(); - Assert.Contains("MultipartBody $body", result); + Assert.Contains("MultiPartBody $body", result); Assert.Contains("$requestInfo->setContentFromParsable($this->requestAdapter, \"multipart/form-data\", $body);", result); } }